mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-15 01:24:33 +00:00
media: tuner-xc2028: don't use casts for printing sizes
Makes smatch happier by using %zd instead of casting sizes: drivers/media/tuners/tuner-xc2028.c:378 load_all_firmwares() warn: argument 4 to %d specifier is cast from pointer drivers/media/tuners/tuner-xc2028.c:619 load_firmware() warn: argument 6 to %d specifier is cast from pointer Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
40e431112c
commit
3fcb3c836e
@ -376,9 +376,8 @@ static int load_all_firmwares(struct dvb_frontend *fe,
|
|||||||
tuner_err("Firmware type ");
|
tuner_err("Firmware type ");
|
||||||
dump_firm_type(type);
|
dump_firm_type(type);
|
||||||
printk(KERN_CONT
|
printk(KERN_CONT
|
||||||
"(%x), id %llx is corrupted (size=%d, expected %d)\n",
|
"(%x), id %llx is corrupted (size=%zd, expected %d)\n",
|
||||||
type, (unsigned long long)id,
|
type, (unsigned long long)id, (endp - p), size);
|
||||||
(unsigned)(endp - p), size);
|
|
||||||
goto corrupt;
|
goto corrupt;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -616,8 +615,8 @@ static int load_firmware(struct dvb_frontend *fe, unsigned int type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((size + p > endp)) {
|
if ((size + p > endp)) {
|
||||||
tuner_err("missing bytes: need %d, have %d\n",
|
tuner_err("missing bytes: need %d, have %zd\n",
|
||||||
size, (int)(endp - p));
|
size, (endp - p));
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user