]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
silicom: checkpatch: trailing statements
authorLorenz Haspel <lorenz@badgers.com>
Mon, 17 Jun 2013 16:26:25 +0000 (18:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 17 Jun 2013 22:49:17 +0000 (15:49 -0700)
fixed checkpatch error:
trailing statements that should be on next line

Signed-off-by: Lorenz Haspel <lorenz@badgers.com>
Signed-off-by: Michael Banken <michael.banken@mathe.stud.uni-erlangen.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bpctl_mod.c

index d573b6931b719683103600c8a19bb874f8d366e0..bb29074b5621f7b8a5d48d4c5e91b481563eebf5 100644 (file)
@@ -165,7 +165,8 @@ static int bp_device_event(struct notifier_block *unused,
                        memcpy(&cbuf, drvinfo.bus_info, 32);
                        buf = &cbuf[0];
 
-                       while (*buf++ != ':');
+                       while (*buf++ != ':')
+                               ;
                        for (i = 0; i < 10; i++, buf++) {
                                if (*buf == ':')
                                        break;
@@ -2150,12 +2151,14 @@ static void bp75_release_phy(bpctl_dev_t *pbpctl_dev)
 {
        u16 mask = BPCTLI_SWFW_PHY0_SM;
        u32 swfw_sync;
+       s32 ret_val;
 
        if ((pbpctl_dev->func == 1) || (pbpctl_dev->func == 3))
                mask = BPCTLI_SWFW_PHY1_SM;
 
-       while (bp75_get_hw_semaphore_generic(pbpctl_dev) != 0);
-       /* Empty */
+       do
+               ret_val = bp75_get_hw_semaphore_generic(pbpctl_dev);
+       while (ret_val != 0);
 
        swfw_sync = BPCTL_READ_REG(pbpctl_dev, SW_FW_SYNC);
        swfw_sync &= ~mask;
@@ -5345,7 +5348,8 @@ static void if_scan_init(void)
                memcpy(&cbuf, drvinfo.bus_info, 32);
                buf = &cbuf[0];
 
-               while (*buf++ != ':');
+               while (*buf++ != ':')
+                       ;
                for (i = 0; i < 10; i++, buf++) {
                        if (*buf == ':')
                                break;