diff options
author | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-03-04 16:55:12 +0200 |
---|---|---|
committer | Alexander Shishkin <alexander.shishkin@linux.intel.com> | 2016-04-08 16:11:54 +0300 |
commit | fb0801904bbbc7b109d4009520c7fa34bcfb7450 (patch) | |
tree | f17e637a2f6129654f479c9c3bfb248377e22e59 /drivers/hwtracing | |
parent | 389b6699a2aa0b457aa69986e9ddf39f3b4030fd (diff) | |
download | op-kernel-dev-fb0801904bbbc7b109d4009520c7fa34bcfb7450.zip op-kernel-dev-fb0801904bbbc7b109d4009520c7fa34bcfb7450.tar.gz |
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>
Diffstat (limited to 'drivers/hwtracing')
-rw-r--r-- | drivers/hwtracing/stm/policy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index e8b50b1..6c0ae29 100644 --- a/drivers/hwtracing/stm/policy.c +++ b/drivers/hwtracing/stm/policy.c @@ -341,7 +341,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); |