summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/nomadik/pinctrl-abx500.c
diff options
context:
space:
mode:
authorPatrice CHOTARD <patrice.chotard@st.com>2014-08-01 11:38:43 +0400
committerLinus Walleij <linus.walleij@linaro.org>2014-08-17 18:15:44 +0400
commit1d54f0fd58314d5b197f6d16338263c00908daab (patch)
tree197bb5da840e293daba82a20019e624053616e71 /drivers/pinctrl/nomadik/pinctrl-abx500.c
parent8a3cfb7c1700732df9fc13439b313bf8db39fefd (diff)
downloadlinux-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/pinctrl/nomadik/pinctrl-abx500.c')
-rw-r--r--drivers/pinctrl/nomadik/pinctrl-abx500.c3
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]);