9
0
Fork 0

pinctrl: remove unnecessary error check

The file drivers/pinctrl/pinctrl.c is compiled only when
CONFIG_PINCTRL is defined.  "IS_ENABLED(CONFIG_PINCTRL)" is
always evaluated as 1 in this function.
(Although the compiler would optimize it, the source file does
not look nice.)

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Masahiro Yamada 2015-02-01 11:58:26 +09:00 committed by Sascha Hauer
parent 8ed32ae81b
commit f5cb522743
1 changed files with 0 additions and 3 deletions

View File

@ -62,9 +62,6 @@ int of_pinctrl_select_state(struct device_node *np, const char *name)
struct device_node *np_config;
const char *statename;
if (!IS_ENABLED(CONFIG_PINCTRL))
return -ENOSYS;
if (!of_find_property(np, "pinctrl-0", NULL))
return 0;