mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
[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>
This commit is contained in:
parent
559f64d4de
commit
576df632f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue