diff options
author | Patrice CHOTARD <patrice.chotard@st.com> | 2014-08-01 11:38:43 +0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2014-08-17 18:15:44 +0400 |
commit | 1d54f0fd58314d5b197f6d16338263c00908daab (patch) | |
tree | 197bb5da840e293daba82a20019e624053616e71 /drivers | |
parent | 8a3cfb7c1700732df9fc13439b313bf8db39fefd (diff) | |
download | linux-1d54f0fd58314d5b197f6d16338263c00908daab.tar.xz |
pinctrl: abx500: remove useless check
pctldev can't be NULL at this stage so remove the check
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pinctrl/nomadik/pinctrl-abx500.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pinctrl/nomadik/pinctrl-abx500.c b/drivers/pinctrl/nomadik/pinctrl-abx500.c index a53a689a2bfa..8c6fd8d4dd3c 100644 --- a/drivers/pinctrl/nomadik/pinctrl-abx500.c +++ b/drivers/pinctrl/nomadik/pinctrl-abx500.c @@ -620,8 +620,7 @@ static void abx500_gpio_dbg_show_one(struct seq_file *s, } else seq_printf(s, " %-9s", chip->get(chip, offset) ? "hi" : "lo"); - if (pctldev) - mode = abx500_get_mode(pctldev, chip, offset); + mode = abx500_get_mode(pctldev, chip, offset); seq_printf(s, " %s", (mode < 0) ? "unknown" : modes[mode]); |