diff options
author | Linus Walleij <linus.walleij@linaro.org> | 2016-01-05 11:13:28 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2016-01-05 11:13:28 +0100 |
commit | 4b63739efabc93d67d2b6812dd0cd41358fadf29 (patch) | |
tree | 980fce8217893a92b5f276e7b088915378d822cb /drivers/gpio/gpio-pxa.c | |
parent | fbdev: via-gpio: Be sure to clamp return value (diff) | |
download | linux-4b63739efabc93d67d2b6812dd0cd41358fadf29.tar.xz linux-4b63739efabc93d67d2b6812dd0cd41358fadf29.zip |
gpio: generic: fix signedness bug found by cppcheck
cppcheck reports this:
(style) int result is returned as long value. If the return
value is long to avoid loss of information, then you have
loss of information.
This can be fixed with (1UL << pin) but that is the same
as using <linux/bitops.h> that already use 1UL so take
this approach.
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-pxa.c')
0 files changed, 0 insertions, 0 deletions