aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shishkin <alexander.shishkin@linux.intel.com>2016-03-04 16:55:12 +0200
committerMathieu Poirier <mathieu.poirier@linaro.org>2016-06-01 15:42:53 -0600
commit8ebbc16a38eea98885d097b14551dcc378ba0ba5 (patch)
treeea98d32a53cb322f665336e4bd4f32790dda111d
parent134bbd594d1c21ffa97ab49d70816536369f1fb1 (diff)
stm class: Remove unnecessary pointer increment
Readability: a postfix increment is used on a pointer which is not used anywhere afterwards, which may send the reader looking through the function one extra time. Drop the unnecessary increment. Reported-by: Alan Cox <alan.cox@intel.com> Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Reviewed-by: Laurent Fert <laurent.fert@intel.com> (cherry picked from commit fb0801904bbbc7b109d4009520c7fa34bcfb7450)
-rw-r--r--drivers/hwtracing/stm/policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c
index 1db189657b2b..1c061cb9bff0 100644
--- a/drivers/hwtracing/stm/policy.c
+++ b/drivers/hwtracing/stm/policy.c
@@ -342,7 +342,7 @@ stp_policies_make(struct config_group *group, const char *name)
return ERR_PTR(-EINVAL);
}
- *p++ = '\0';
+ *p = '\0';
stm = stm_find_device(devname);
kfree(devname);