OSDN Git Service

staging: rtl8188eu: fix indentation - style
authorMichael Straube <straube.linux@gmail.com>
Tue, 31 Jul 2018 11:34:10 +0000 (13:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 07:44:27 +0000 (09:44 +0200)
Fix indentation to clear checkpatch warnings.
WARNING: suspect code indent for conditional statements

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/ioctl_linux.c
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index 4a81245..19387d8 100644 (file)
@@ -142,7 +142,7 @@ static char *translate_scan(struct adapter *padapter,
                if (ht_cap)
                        snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11bn");
                else
-               snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11b");
+                       snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11b");
        } else if ((rtw_is_cckrates_included((u8 *)&pnetwork->network.SupportedRates))) {
                if (ht_cap)
                        snprintf(iwe.u.name, IFNAMSIZ, "IEEE 802.11bgn");
@@ -2299,7 +2299,7 @@ static int rtw_set_encryption(struct net_device *dev, struct ieee_param *param,
 
                                psecuritypriv->dot118021XGrpPrivacy = _WEP40_;
                                if (param->u.crypt.key_len == 13)
-                                               psecuritypriv->dot118021XGrpPrivacy = _WEP104_;
+                                       psecuritypriv->dot118021XGrpPrivacy = _WEP104_;
                        } else if (strcmp(param->u.crypt.alg, "TKIP") == 0) {
                                DBG_88E("%s, set group_key, TKIP\n", __func__);
                                psecuritypriv->dot118021XGrpPrivacy = _TKIP_;
index 025cd0f..69f04fa 100644 (file)
@@ -380,7 +380,7 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
        /* 2012-07-11 Move here to prevent the 8723AS-VAU BT auto
         * suspend influence */
        if (usb_autopm_get_interface(pusb_intf) < 0)
-                       pr_debug("can't get autopm:\n");
+               pr_debug("can't get autopm:\n");
 
        /*  alloc dev name after read efuse. */
        rtw_init_netdev_name(pnetdev, padapter->registrypriv.ifname);