mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-26 07:35:44 +08:00
media: xc4000: get rid of uneeded casts
Instead of doing casts, use %zd to print sizes, in order to make smatch happier: drivers/media/tuners/xc4000.c:818 xc4000_fwupload() warn: argument 4 to %d specifier is cast from pointer Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
c4f047969f
commit
8218840f76
@ -815,9 +815,9 @@ static int xc4000_fwupload(struct dvb_frontend *fe)
|
|||||||
p += sizeof(size);
|
p += sizeof(size);
|
||||||
|
|
||||||
if (!size || size > endp - p) {
|
if (!size || size > endp - p) {
|
||||||
printk(KERN_ERR "Firmware type (%x), id %llx is corrupted (size=%d, expected %d)\n",
|
printk(KERN_ERR "Firmware type (%x), id %llx is corrupted (size=%zd, expected %d)\n",
|
||||||
type, (unsigned long long)id,
|
type, (unsigned long long)id,
|
||||||
(unsigned)(endp - p), size);
|
endp - p, size);
|
||||||
goto corrupt;
|
goto corrupt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user