fix non proper indents for if clause
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Sat, 21 Jan 2017 03:28:57 +0000 (12:28 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 27 Feb 2019 02:11:37 +0000 (11:11 +0900)
non proper indent for if clause causes build error with gcc 6. So
this patch fixes them.

Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
drivers/battery/s2mpw01_charger.c
drivers/gud/gud-exynos7570/MobiCoreDriver/main.c
drivers/net/wireless/bcmdhd/dhd_sdio.c
drivers/nfc/sec_nfc.c

index 576f103..a12949b 100644 (file)
@@ -1186,9 +1186,10 @@ static void s2mpw01_muic_detect_handler(struct s2mpw01_charger_data *charger, bo
                                if ((chg_sts2 & USB_BOOT_ON_STATUS_MASK) ||
                                        (chg_sts2 & USB_BOOT_OFF_STATUS_MASK)) {
 #if defined(CONFIG_MUIC_NOTIFIER)
-                                       if (charger->is_usb_ready)
+                                       if (charger->is_usb_ready) {
                                                charger->muic_dev = ATTACHED_DEV_JIG_USB_ON_MUIC;
                                                muic_notifier_attach_attached_dev(charger->muic_dev);
+                                       }
 #endif
                                        pr_info(" USB_BOOT_ON_STATUS_MASK USB_BOOT_OFF_STATUS_MASK.\n");
                                        pr_info("%s: JIG_ID USB ON ( 301K ) connected \n", __func__);
index 74ffa53..5289fff 100644 (file)
@@ -609,7 +609,7 @@ static int mobicore_probe(struct platform_device *pdev)
        if (err)
                goto fail_creat_dev_admin;
 
-               return 0;
+       return 0;
 
 fail_creat_dev_admin:
        mc_scheduler_exit();
index 14df7d4..dfcad7c 100644 (file)
@@ -9597,7 +9597,7 @@ dhd_bus_devreset(dhd_pub_t *dhdp, uint8 flag)
                        } else
                                bcmerror = BCME_SDIO_ERROR;
 
-                               dhd_os_sdunlock(dhdp);
+                       dhd_os_sdunlock(dhdp);
                } else {
                        DHD_INFO(("%s called when dongle is not in reset\n",
                                __FUNCTION__));
index 193acf0..14db3d7 100644 (file)
@@ -174,7 +174,7 @@ static void p61_update_access_state(struct pn5xx_dev *pn5xx_dev, p61_access_stat
         if(set){
             if(pn5xx_dev->p61_current_state == P61_STATE_IDLE)
                        pn5xx_dev->p61_current_state = P61_STATE_INVALID;
-                       pn5xx_dev->p61_current_state |= current_state;
+               pn5xx_dev->p61_current_state |= current_state;
         }
         else{
             pn5xx_dev->p61_current_state ^= current_state;