From: Alexander Shishkin Date: Fri, 4 Mar 2016 14:55:12 +0000 (+0200) Subject: stm class: Remove unnecessary pointer increment X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fb0801904bbbc7b109d4009520c7fa34bcfb7450;p=linux-beck.git 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 Signed-off-by: Alexander Shishkin Reviewed-by: Laurent Fert --- diff --git a/drivers/hwtracing/stm/policy.c b/drivers/hwtracing/stm/policy.c index e8b50b1ac619..6c0ae2996326 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);