mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
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 fb0801904b)
This commit is contained in:
committed by
Mathieu Poirier
parent
134bbd594d
commit
8ebbc16a38
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user