diff mbox

pinctrl: remove redundant if conditional from Kconfig

Message ID 1446705963-7174-1-git-send-email-yamada.masahiro@socionext.com
State New
Headers show

Commit Message

Masahiro Yamada Nov. 5, 2015, 6:46 a.m. UTC
The whole menu is guarded by

  menu "Pin controllers"
          depends on PINCTRL
      ...
  endmenu

The if conditional outside of it is redundant.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---

 drivers/pinctrl/Kconfig | 4 ----
 1 file changed, 4 deletions(-)

Comments

Linus Walleij Nov. 17, 2015, 10:48 a.m. UTC | #1
On Thu, Nov 5, 2015 at 7:46 AM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:

> The whole menu is guarded by
>
>   menu "Pin controllers"
>           depends on PINCTRL
>       ...
>   endmenu
>
> The if conditional outside of it is redundant.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>

Patch applied.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig
index b422e4e..312c78b 100644
--- a/drivers/pinctrl/Kconfig
+++ b/drivers/pinctrl/Kconfig
@@ -5,8 +5,6 @@ 
 config PINCTRL
 	bool
 
-if PINCTRL
-
 menu "Pin controllers"
 	depends on PINCTRL
 
@@ -274,5 +272,3 @@  config PINCTRL_TB10X
 	select GPIOLIB
 
 endmenu
-
-endif