[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20200814113933.1903438-12-lee.jones@linaro.org>
Date: Fri, 14 Aug 2020 12:39:14 +0100
From: Lee Jones <lee.jones@...aro.org>
To: davem@...emloft.net, kuba@...nel.org
Cc: linux-kernel@...r.kernel.org, Lee Jones <lee.jones@...aro.org>,
Kalle Valo <kvalo@...eaurora.org>,
Benjamin Reed <breed@...rs.sourceforge.net>,
Javier Achirica <achirica@...rs.sourceforge.net>,
Jean Tourrilhes <jt@....hp.com>,
Fabrice Bellet <fabrice@...let.info>,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH 11/30] net: wireless: cisco: airo: Place brackets around empty statement
Fixes the following W=1 kernel build warning(s):
drivers/net/wireless/cisco/airo.c: In function ‘airo_init_module’:
drivers/net/wireless/cisco/airo.c:5663:21: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
Cc: Kalle Valo <kvalo@...eaurora.org>
Cc: "David S. Miller" <davem@...emloft.net>
Cc: Jakub Kicinski <kuba@...nel.org>
Cc: Benjamin Reed <breed@...rs.sourceforge.net>
Cc: Javier Achirica <achirica@...rs.sourceforge.net>
Cc: Jean Tourrilhes <jt@....hp.com>
Cc: Fabrice Bellet <fabrice@...let.info>
Cc: linux-wireless@...r.kernel.org
Cc: netdev@...r.kernel.org
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/net/wireless/cisco/airo.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/wireless/cisco/airo.c b/drivers/net/wireless/cisco/airo.c
index 316672486d826..8002a4268e03e 100644
--- a/drivers/net/wireless/cisco/airo.c
+++ b/drivers/net/wireless/cisco/airo.c
@@ -5659,8 +5659,9 @@ static int __init airo_init_module( void )
for (i = 0; i < 4 && io[i] && irq[i]; i++) {
airo_print_info("", "Trying to configure ISA adapter at irq=%d "
"io=0x%x", irq[i], io[i] );
- if (init_airo_card( irq[i], io[i], 0, NULL ))
+ if (init_airo_card( irq[i], io[i], 0, NULL )) {
/* do nothing */ ;
+ }
}
#ifdef CONFIG_PCI
--
2.25.1
Powered by blists - more mailing lists