Staging: vt6655: Fix brace coding style issues in ioctl.c
authormahendra singh meena <mahendra.devel@gmail.com>
Mon, 16 Jan 2012 18:20:38 +0000 (23:50 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:19:21 +0000 (09:19 -0800)
This patch fixes up unnecessary brace warnings found in ioctl.c
by checkpatch.pl .

Signed-off-by: Mahendra Singh Meena <mahendra.devel@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/ioctl.c

index 7fd5cc5a55f6e3b6dbc4bbd3b623e9529b877bd7..ef197efab049de3f87dc34fb42a0d4432e521222 100644 (file)
@@ -324,16 +324,16 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                                pItemSSID = (PWLAN_IE_SSID)pBSS->abySSID;
                                memset(pList->sBSSIDList[ii].abySSID, 0, WLAN_SSID_MAXLEN + 1);
                                memcpy(pList->sBSSIDList[ii].abySSID, pItemSSID->abySSID, pItemSSID->len);
-                               if (WLAN_GET_CAP_INFO_ESS(pBSS->wCapInfo)) {
+                               if (WLAN_GET_CAP_INFO_ESS(pBSS->wCapInfo))
                                        pList->sBSSIDList[ii].byNetType = INFRA;
-                               } else {
+                               else
                                        pList->sBSSIDList[ii].byNetType = ADHOC;
-                               }
-                               if (WLAN_GET_CAP_INFO_PRIVACY(pBSS->wCapInfo)) {
+
+                               if (WLAN_GET_CAP_INFO_PRIVACY(pBSS->wCapInfo))
                                        pList->sBSSIDList[ii].bWEPOn = true;
-                               } else {
+                               else
                                        pList->sBSSIDList[ii].bWEPOn = false;
-                               }
+
                                ii++;
                                if (ii >= pList->uItem)
                                        break;
@@ -367,9 +367,9 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                netif_stop_queue(pDevice->dev);
 
                spin_lock_irq(&pDevice->lock);
-               if (pDevice->bRadioOff == false) {
+               if (pDevice->bRadioOff == false)
                        CARDbRadioPowerOff(pDevice);
-               }
+
                pDevice->bLinkPass = false;
                memset(pMgmt->abyCurrBSSID, 0, 6);
                pMgmt->eCurrState = WMAC_STATE_IDLE;
@@ -489,13 +489,12 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
                        break;
                }
 
-               if (sStartAPCmd.wBBPType == PHY80211g) {
+               if (sStartAPCmd.wBBPType == PHY80211g)
                        pMgmt->byAPBBType = PHY_TYPE_11G;
-               } else if (sStartAPCmd.wBBPType == PHY80211a) {
+               else if (sStartAPCmd.wBBPType == PHY80211a)
                        pMgmt->byAPBBType = PHY_TYPE_11A;
-               } else {
+               else
                        pMgmt->byAPBBType = PHY_TYPE_11B;
-               }
 
                pItemSSID = (PWLAN_IE_SSID)sStartAPCmd.ssid;
                if (pItemSSID->len > WLAN_SSID_MAXLEN + 1)