Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: 8523/1: sa1111: ensure no negative value gets returned on positive match

This patch ensures that existing bus match callbacks don't return
negative values (which might be interpreted as potential errors in the
future) in case of positive match.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>

authored by

Marek Szyprowski and committed by
Russell King
17f29d36 82ec2ba2

+1 -1
+1 -1
arch/arm/common/sa1111.c
··· 1290 1290 struct sa1111_dev *dev = SA1111_DEV(_dev); 1291 1291 struct sa1111_driver *drv = SA1111_DRV(_drv); 1292 1292 1293 - return dev->devid & drv->devid; 1293 + return !!(dev->devid & drv->devid); 1294 1294 } 1295 1295 1296 1296 static int sa1111_bus_suspend(struct device *dev, pm_message_t state)