mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 15:41:39 +00:00
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>
This commit is contained in:
parent
8a3cfb7c17
commit
1d54f0fd58
@ -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]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user