media: uvcvideo: Use parentheses around sizeof operand
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Tue, 16 Jan 2018 17:45:36 +0000 (12:45 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 23 Feb 2018 07:23:24 +0000 (02:23 -0500)
commitf14d4988c28e5243e43ba792ee34994951240b0f
tree3e621c2b3cb8b9eae8ae5da96b0056a781a60ae9
parent2c6b222cee2d68e30f059b8ca9194532416bb3f4
media: uvcvideo: Use parentheses around sizeof operand

While the sizeof is an operator and not a function, the preferred coding
style in the kernel is to enclose its operand in parentheses. To avoid
mixing multiple coding styles in the driver, use parentheses around all
sizeof operands.

While at it replace a kmalloc() with a kmalloc_array() to silence a
checkpatch warning triggered by this patch.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/uvc/uvc_ctrl.c
drivers/media/usb/uvc/uvc_driver.c
drivers/media/usb/uvc/uvc_v4l2.c
drivers/media/usb/uvc/uvc_video.c