summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/nomadik
diff options
context:
space:
mode:
authorPatrice CHOTARD <patrice.chotard@st.com>2014-08-01 09:38:43 +0200
committerLinus Walleij <linus.walleij@linaro.org>2014-08-17 09:15:44 -0500
commit1d54f0fd58314d5b197f6d16338263c00908daab (patch)
tree197bb5da840e293daba82a20019e624053616e71 /drivers/pinctrl/nomadik
parent8a3cfb7c1700732df9fc13439b313bf8db39fefd (diff)
downloadlwn-1d54f0fd58314d5b197f6d16338263c00908daab.tar.gz
lwn-1d54f0fd58314d5b197f6d16338263c00908daab.zip
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')
-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]);