Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c836790a authored by Michael Moese's avatar Michael Moese Committed by Greg Kroah-Hartman
Browse files

mcb: fix compiler warning logical-op in mcb-parse.c



The expression was clearly wrong, the logical AND of expressions
must be changed to a logical OR.

Reported-by: default avatarDavid Binderman <dcb314@hotmail.com>
Signed-off-by: default avatarMichael Moese <michael.moese@men.de>
Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent b7d91c91
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ static int chameleon_get_bar(char __iomem **base, phys_addr_t mapbase,
		reg = readl(*base);

		bar_count = BAR_CNT(reg);
		if (bar_count <= 0 && bar_count > CHAMELEON_BAR_MAX)
		if (bar_count <= 0 || bar_count > CHAMELEON_BAR_MAX)
			return -ENODEV;

		c = kcalloc(bar_count, sizeof(struct chameleon_bar),