staging: brcm80211: fix "ERROR: trailing statements should be on next line"
authorJason Cooper <jason@lakedaemon.net>
Tue, 14 Sep 2010 13:45:34 +0000 (09:45 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 14 Sep 2010 23:22:05 +0000 (16:22 -0700)
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/brcm80211/include/linux_osl.h
drivers/staging/brcm80211/include/linuxver.h
drivers/staging/brcm80211/phy/wlc_phy_cmn.c
drivers/staging/brcm80211/sys/wlc_mac80211.c
drivers/staging/brcm80211/util/bcmotp.c
drivers/staging/brcm80211/util/bcmsrom.c
drivers/staging/brcm80211/util/bcmutils.c
drivers/staging/brcm80211/util/nvram/nvram_ro.c

index 5d2b1d06d8e3788a4dbb85db1287abe175eecef6..2c1f61c4522150a207c62ed9cc524db843120c0f 100644 (file)
@@ -190,12 +190,16 @@ extern int osl_error(int bcmerror);
                        __typeof(*(r)) __osl_v; \
                        __asm__ __volatile__("sync"); \
                        switch (sizeof(*(r))) { \
-                       case sizeof(uint8):     __osl_v = \
-                               readb((volatile uint8*)(r)); break; \
-                       case sizeof(uint16):    __osl_v = \
-                               readw((volatile uint16*)(r)); break; \
-                       case sizeof(uint32):    __osl_v = \
-                               readl((volatile uint32*)(r)); break; \
+                       case sizeof(uint8): \
+                               __osl_v = readb((volatile uint8*)(r)); \
+                               break; \
+                       case sizeof(uint16): \
+                               __osl_v = readw((volatile uint16*)(r)); \
+                               break; \
+                       case sizeof(uint32): \
+                               __osl_v = \
+                               readl((volatile uint32*)(r)); \
+                               break; \
                        } \
                        __asm__ __volatile__("sync"); \
                        __osl_v; \
@@ -228,12 +232,17 @@ extern int osl_error(int bcmerror);
                ({ \
                        __typeof(*(r)) __osl_v; \
                        switch (sizeof(*(r))) { \
-                       case sizeof(uint8):     __osl_v = \
-                               readb((volatile uint8*)((uintptr)(r)^3)); break; \
-                       case sizeof(uint16):    __osl_v = \
-                               readw((volatile uint16*)((uintptr)(r)^2)); break; \
-                       case sizeof(uint32):    __osl_v = \
-                               readl((volatile uint32*)(r)); break; \
+                       case sizeof(uint8): \
+                               __osl_v = \
+                               readb((volatile uint8*)((uintptr)(r)^3)); \
+                               break; \
+                       case sizeof(uint16): \
+                               __osl_v = \
+                               readw((volatile uint16*)((uintptr)(r)^2)); \
+                               break; \
+                       case sizeof(uint32): \
+                               __osl_v = readl((volatile uint32*)(r)); \
+                               break; \
                        } \
                        __osl_v; \
                }), \
@@ -353,9 +362,15 @@ extern void *osl_pktdup(osl_t *osh, void *skb);
 )
 #define RPC_WRITE_REG(osh, r, v) do { \
        switch (sizeof(*(r))) { \
-       case sizeof(uint8):     osl_writeb((osh), (volatile uint8*)(r), (uint8)(v)); break; \
-       case sizeof(uint16):    osl_writew((osh), (volatile uint16*)(r), (uint16)(v)); break; \
-       case sizeof(uint32):    osl_writel((osh), (volatile uint32*)(r), (uint32)(v)); break; \
+       case sizeof(uint8): \
+               osl_writeb((osh), (volatile uint8*)(r), (uint8)(v)); \
+               break; \
+       case sizeof(uint16): \
+               osl_writew((osh), (volatile uint16*)(r), (uint16)(v)); \
+               break; \
+       case sizeof(uint32): \
+               osl_writel((osh), (volatile uint32*)(r), (uint32)(v)); \
+               break; \
        } \
 } while (0)
 
index 740c3fa7ee14146c05bc22c147d0a514ae1426e9..3305d41298a65c08d24d1e05b0d84efa4dec46bd 100644 (file)
@@ -100,7 +100,8 @@ typedef irqreturn_t(*FN_ISR) (int irq, void *dev_id, struct pt_regs * ptregs);
                struct pid *pid;    \
                pid = find_get_pid((pid_t)nr);    \
                tsk = pid_task(pid, PIDTYPE_PID);    \
-               if (tsk) send_sig(sig, tsk, 1); \
+               if (tsk) \
+                       send_sig(sig, tsk, 1); \
        } while (0)
 
 #define WL_DEV_IF(dev)          ((wl_if_t*)netdev_priv(dev))
index c0b458db87d370137c12876f270c619f2393ef60..01876ac3706957eec61dcea8d2338cf5cfc981a9 100644 (file)
@@ -162,7 +162,8 @@ char *phy_getvar(phy_info_t *pi, const char *name)
                if ((bcmp(s, name, len) == 0) && (s[len] == '='))
                        return &s[len + 1];
 
-               while (*s++) ;
+               while (*s++)
+                       ;
        }
 
        return nvram_get(name);
index 6498c1304762930d4d872666355d5cca33f0fd56..186a06dd73f9b701b21e9e7cf7b9d0898f72c73c 100644 (file)
@@ -4385,7 +4385,8 @@ _wlc_ioctl(wlc_info_t *wlc, int cmd, void *arg, int len, struct wlc_if *wlcif)
                        /* validate the name value */
                        name = (char *)arg;
                        for (i = 0; i < (uint) len && *name != '\0';
-                            i++, name++) ;
+                            i++, name++)
+                               ;
 
                        if (i == (uint) len) {
                                bcmerror = BCME_BUFTOOSHORT;
index ea4dc1eebcc1c676dd8db25c6a9552c54c7a36ff..3c812d4436ca352b7e1e69a14bda2d089a37bd89 100644 (file)
@@ -199,7 +199,8 @@ static uint16 ipxotp_read_bit(void *oh, chipcregs_t *cc, uint off)
 
        for (k = 0;
             ((st = R_REG(oi->osh, &cc->otpprog)) & OTPP_START_BUSY)
-            && (k < OTPP_TRIES); k++) ;
+            && (k < OTPP_TRIES); k++)
+               ;
        if (k >= OTPP_TRIES) {
                return 0xffff;
        }
@@ -259,7 +260,8 @@ static void BCMNMIATTACHFN(_ipxotp_init) (otpinfo_t *oi, chipcregs_t *cc)
        W_REG(oi->osh, &cc->otpprog, otpp);
        for (k = 0;
             ((st = R_REG(oi->osh, &cc->otpprog)) & OTPP_START_BUSY)
-            && (k < OTPP_TRIES); k++) ;
+            && (k < OTPP_TRIES); k++)
+               ;
        if (k >= OTPP_TRIES) {
                return;
        }
index d800ca501ed91ee291eff0c8347e8f27ba39debc..59aa65bfcb17bec24e910ef8c7d1568761358f7f 100644 (file)
@@ -137,7 +137,8 @@ static int BCMATTACHFN(varbuf_append) (varbuf_t *b, const char *fmt, ...)
                                break;
                        }
 
-                       while (*s++) ;
+                       while (*s++)
+                               ;
                }
        }
 
index 64e71b9aa4d5dd6af78c5d1192b0da3001559251..7f24fa71e7327997c8244b874367f482fe5503e5 100644 (file)
@@ -106,7 +106,8 @@ uint BCMFASTPATH pkttotlen(osl_t *osh, void *p)
 /* return the last buffer of chained pkt */
 void *pktlast(osl_t *osh, void *p)
 {
-       for (; PKTNEXT(p); p = PKTNEXT(p)) ;
+       for (; PKTNEXT(p); p = PKTNEXT(p))
+               ;
 
        return p;
 }
@@ -286,7 +287,8 @@ bool BCMFASTPATH pktq_pdel(struct pktq *pq, void *pktbuf, int prec)
                if (q->head == NULL)
                        q->tail = NULL;
        } else {
-               for (p = q->head; p && PKTLINK(p) != pktbuf; p = PKTLINK(p)) ;
+               for (p = q->head; p && PKTLINK(p) != pktbuf; p = PKTLINK(p))
+                       ;
                if (p == NULL)
                        return FALSE;
 
@@ -619,7 +621,8 @@ char *BCMROMFN(bcmstrcat) (char *dest, const char *src)
 
        p = dest + strlen(dest);
 
-       while ((*p++ = *src++) != '\0') ;
+       while ((*p++ = *src++) != '\0')
+               ;
 
        return dest;
 }
@@ -632,7 +635,8 @@ char *BCMROMFN(bcmstrncat) (char *dest, const char *src, uint size)
        p = dest + strlen(dest);
        endp = p + size;
 
-       while (p != endp && (*p++ = *src++) != '\0') ;
+       while (p != endp && (*p++ = *src++) != '\0')
+               ;
 
        return dest;
 }
@@ -841,7 +845,8 @@ char *getvar(char *vars, const char *name)
                if ((bcmp(s, name, len) == 0) && (s[len] == '='))
                        return &s[len + 1];
 
-               while (*s++) ;
+               while (*s++)
+                       ;
        }
 
        /* then query nvram */
index 12983c4abb1494e68b6acaefe1ccfc1da5802b1d..86832e1a591236f6949fb8d2ebb887003f6f3234 100644 (file)
@@ -135,7 +135,8 @@ static char *findvar(char *vars, char *lim, const char *name)
                if ((bcmp(s, name, len) == 0) && (s[len] == '='))
                        return &s[len + 1];
 
-               while (*s++) ;
+               while (*s++)
+                       ;
        }
 
        return NULL;