From: Hans Verkuil Date: Wed, 20 Aug 2014 22:25:34 +0000 (-0300) Subject: [media] s2255drv: fix sparse warning X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~303 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ff3ec57df9e87bcb18e81157cbe3bef3159d76a3;p=pandora-kernel.git [media] s2255drv: fix sparse warning drivers/media/usb/s2255/s2255drv.c:2248:20: warning: cast to restricted __le16 At the USB structs there are two different idProduct: usb_device_id::idProduct - already on CPU endiannes usb_device::descriptor.idProduct - with is LE16 In this specific case, the driver checks for the one at usb_device_id struct, with already have CPU endianness. So, no conversion is required. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed