Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d54f0fd authored by Patrice CHOTARD's avatar Patrice CHOTARD Committed by Linus Walleij
Browse files

pinctrl: abx500: remove useless check



pctldev can't be NULL at this stage so remove the check

Reported-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 8a3cfb7c
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -620,7 +620,6 @@ 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);

	seq_printf(s, " %s", (mode < 0) ? "unknown" : modes[mode]);