Skip to content

Commit 17f29d3

Browse files
mszyprowRussell King
authored andcommitted
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>
1 parent 82ec2ba commit 17f29d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/arm/common/sa1111.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1290,7 +1290,7 @@ static int sa1111_match(struct device *_dev, struct device_driver *_drv)
12901290
struct sa1111_dev *dev = SA1111_DEV(_dev);
12911291
struct sa1111_driver *drv = SA1111_DRV(_drv);
12921292

1293-
return dev->devid & drv->devid;
1293+
return !!(dev->devid & drv->devid);
12941294
}
12951295

12961296
static int sa1111_bus_suspend(struct device *dev, pm_message_t state)

0 commit comments

Comments
 (0)