diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-10-13 08:23:22 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2016-11-18 10:48:22 -0200 |
commit | 576df632f24f7db40b7266cada96ed1b76f1255d (patch) | |
tree | 5c529a6983cebf146000683d6014a28c36d1f0c1 /drivers/media/rc | |
parent | 559f64d4de35c6ff5a89599bc209452e24b4fba4 (diff) | |
download | linux-576df632f24f7db40b7266cada96ed1b76f1255d.tar.bz2 |
[media] RedRat3: Improve another size determination in redrat3_reset()
Replace the specification of a data type by a pointer dereference
as the parameter for the operator "sizeof" to make the corresponding size
determination a bit safer.
Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/redrat3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/rc/redrat3.c b/drivers/media/rc/redrat3.c index 5e43766757fd..342a85d02887 100644 --- a/drivers/media/rc/redrat3.c +++ b/drivers/media/rc/redrat3.c @@ -536,7 +536,7 @@ static void redrat3_reset(struct redrat3_dev *rr3) struct device *dev = rr3->dev; int rc, rxpipe, txpipe; u8 *val; - int len = sizeof(u8); + size_t const len = sizeof(*val); rxpipe = usb_rcvctrlpipe(udev, 0); txpipe = usb_sndctrlpipe(udev, 0); |