From: Linus Walleij Date: Wed, 24 Sep 2014 11:30:24 +0000 (+0200) Subject: gpio: dwapb: fix pointer to integer cast X-Git-Tag: fixes-against-v3.18-rc2~140^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=58a3b92d33d289e2f3390b40a2c5cfd7f32cfe7a;p=pandora-kernel.git gpio: dwapb: fix pointer to integer cast The statements BUG_ON(ctx == 0) was implicitly casting a pointer to an integer for comparison. Do this with a bool test instead to get away from sparse warnings. Signed-off-by: Linus Walleij --- Reading git-diff-tree failed