Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1198399

[PATCH 2/3] drivers: staging: wilc1000: move { to previous line

From Chandra S Gorentla <csgorentla@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] drivers: staging: wilc1000: move { to previous line
Date 2015-08-02 18:00 +0200
Message-ID <pT3Q6-59-7@gated-at.bofh.it> (permalink)
References <pT3Q6-59-5@gated-at.bofh.it> <pT3Q6-59-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Moved the opening brace of code blocks to the previous lines.  This
fixes the checkpatch.pl error - "that open brace { should be on the
previous line".

Signed-off-by: Chandra S Gorentla <csgorentla@gmail.com>
---
 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
index 1d0b7f8..b995056 100644
--- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
+++ b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
@@ -1205,8 +1205,7 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k
 
 
 
-			if (!pairwise)
-			{
+			if (!pairwise) {
 				if (params->cipher == WLAN_CIPHER_SUITE_TKIP)
 					u8gmode = ENCRYPT_ENABLED | WPA | TKIP;
 				else
@@ -1304,8 +1303,7 @@ static int WILC_WFI_add_key(struct wiphy *wiphy, struct net_device *netdev, u8 k
 
 		{
 			u8mode = 0;
-			if (!pairwise)
-			{
+			if (!pairwise) {
 				if (params->key_len > 16 && params->cipher == WLAN_CIPHER_SUITE_TKIP) {
 					/* swap the tx mic by rx mic */
 					pu8RxMic = params->key + 24;
@@ -1531,8 +1529,7 @@ static int WILC_WFI_get_key(struct wiphy *wiphy, struct net_device *netdev, u8 k
 	priv = wiphy_priv(wiphy);
 
 
-	if (!pairwise)
-	{
+	if (!pairwise) {
 		PRINT_D(CFG80211_DBG, "Getting group key idx: %x\n", key_index);
 
 		key_params.key = priv->wilc_gtk[key_index]->key;
-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

drivers: staging: wilc1000: Fix a few style erros Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
  [PATCH 2/3] drivers: staging: wilc1000: move { to previous line Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
    [PATCH 3/3] drivers: staging: wilc1000: remove space after '(' Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
  [PATCH 1/3] drivers: staging: wilc1000: use 'void' for no arguments functions Chandra S Gorentla <csgorentla@gmail.com> - 2015-08-02 18:00 +0200
    Re: [PATCH 1/3] drivers: staging: wilc1000: use 'void' for no  arguments functions Greg KH <gregkh@linuxfoundation.org> - 2015-08-04 02:40 +0200

csiph-web