mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-26 06:33:19 -04:00
staging: unisys: clean up extra parens in vbuschannel_devinfo_to_string
Get rid of the unnecessary parenthesis in several assignments in vbuschannel_devinfo_to_string(). Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
a6208124b2
commit
8d507c664d
1 changed files with 3 additions and 3 deletions
|
|
@ -157,7 +157,7 @@ vbuschannel_devinfo_to_string(struct ultra_vbus_deviceinfo *devinfo,
|
|||
int nsrc, x, i, pad;
|
||||
int chars = 0;
|
||||
|
||||
psrc = &(devinfo->devtype[0]);
|
||||
psrc = &devinfo->devtype[0];
|
||||
nsrc = sizeof(devinfo->devtype);
|
||||
if (vbuschannel_sanitize_buffer(NULL, 0, psrc, nsrc) <= 0)
|
||||
return 0;
|
||||
|
|
@ -187,7 +187,7 @@ vbuschannel_devinfo_to_string(struct ultra_vbus_deviceinfo *devinfo,
|
|||
VBUSCHANNEL_ADDACHAR(' ', p, remain, chars);
|
||||
|
||||
/* emit driver name */
|
||||
psrc = &(devinfo->drvname[0]);
|
||||
psrc = &devinfo->drvname[0];
|
||||
nsrc = sizeof(devinfo->drvname);
|
||||
x = vbuschannel_sanitize_buffer(p, remain, psrc, nsrc);
|
||||
p += x;
|
||||
|
|
@ -199,7 +199,7 @@ vbuschannel_devinfo_to_string(struct ultra_vbus_deviceinfo *devinfo,
|
|||
VBUSCHANNEL_ADDACHAR(' ', p, remain, chars);
|
||||
|
||||
/* emit strings */
|
||||
psrc = &(devinfo->infostrs[0]);
|
||||
psrc = &devinfo->infostrs[0];
|
||||
nsrc = sizeof(devinfo->infostrs);
|
||||
x = vbuschannel_sanitize_buffer(p, remain, psrc, nsrc);
|
||||
p += x;
|
||||
|
|
|
|||
Loading…
Reference in a new issue