pcmcia: Use resource_size function on resource object

[ Upstream commit 24a025497e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Jules Irenge 2024-05-12 23:31:21 +01:00 • committed by Greg Kroah-Hartman
commit 8decfd84e6