media: hdpvr: fix smatch warning
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Feb 2019 09:13:33 +0000 (04:13 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 7 Feb 2019 17:37:17 +0000 (12:37 -0500)
commitd75e77ed14f86034ace17e65ab6a6261dd0858c2
treede39ed8fcbb0dbc564369a9c57000fcdd078dad3
parenta4d3d61254d3645d8de738102c3c473b176180a5
media: hdpvr: fix smatch warning

drivers/media/usb/hdpvr/hdpvr-i2c.c: drivers/media/usb/hdpvr/hdpvr-i2c.c:78 hdpvr_i2c_read() warn: 'dev->i2c_buf' 4216624615462223872 can't fit into 127 '*data'

dev->i2c_buf is a char array, so you can just use dev->i2c_buf to get the
start address, no need to do &dev->i2c_buf, even though it is the same
address in C. It only confuses smatch.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/hdpvr/hdpvr-i2c.c