OSDN Git Service

pinctrl: stmfx: Fix 'warn: unsigned <VAR> is never less than zero'
authorLee Jones <lee.jones@linaro.org>
Mon, 13 May 2019 06:36:16 +0000 (07:36 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 13 May 2019 07:28:20 +0000 (08:28 +0100)
commit28a853860f719a89774a28596e1d1fdf1cd4a611
tree37f035dc19b43a38d8fb65475b4aa16b6b30468f
parent9af2de7657f5a52f9e15aebb6f9348f9b8f250a6
pinctrl: stmfx: Fix 'warn: unsigned <VAR> is never less than zero'

smatch warnings:
drivers/pinctrl/pinctrl-stmfx.c:225 stmfx_pinconf_get() warn: unsigned 'dir' is never less than zero.
drivers/pinctrl/pinctrl-stmfx.c:228 stmfx_pinconf_get() warn: unsigned 'type' is never less than zero.
drivers/pinctrl/pinctrl-stmfx.c:231 stmfx_pinconf_get() warn: unsigned 'pupd' is never less than zero.

Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/pinctrl/pinctrl-stmfx.c