]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pcmcia: Use resource_size function on resource object
authorJules Irenge <jbi.octave@gmail.com>
Sun, 12 May 2024 22:31:21 +0000 (23:31 +0100)
committerDominik Brodowski <linux@dominikbrodowski.net>
Sun, 30 Jun 2024 13:34:51 +0000 (15:34 +0200)
commit24a025497e7e883bd2adef5d0ece1e9b9268009f
treec781fc1a35e1455263f0ca47cf4dfdc2b560b3b0
parent02d51503324cb699ef248ece47cbdc2f2a61eb73
pcmcia: Use resource_size function on resource object

Cocinnele reports a warning

WARNING: Suspicious code. resource_size is maybe missing with root

The root cause is the function resource_size is not used when needed

Use resource_size() on variable "root" of type resource

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
drivers/pcmcia/yenta_socket.c