Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb080190 authored by Alexander Shishkin's avatar Alexander Shishkin
Browse files

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: default avatarAlan Cox <alan.cox@intel.com>
Signed-off-by: default avatarAlexander Shishkin <alexander.shishkin@linux.intel.com>
Reviewed-by: default avatarLaurent Fert <laurent.fert@intel.com>
parent 389b6699
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);