This patch fixes the following checkpatch.pl issues in wl_netdev.c:
ERROR: that open brace { should be on the previous line

Signed-off-by: Jelena Bjelja <jelena.bjelja....@gmail.com>
---
 drivers/staging/wlags49_h2/wl_netdev.c |   21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/drivers/staging/wlags49_h2/wl_netdev.c 
b/drivers/staging/wlags49_h2/wl_netdev.c
index 4b81ecc..e3aa90e 100644
--- a/drivers/staging/wlags49_h2/wl_netdev.c
+++ b/drivers/staging/wlags49_h2/wl_netdev.c
@@ -701,8 +701,7 @@ int wl_send(struct wl_private *lp)
                }
 
 #ifdef USE_WDS
-               else
-               {
+               else {
                        lp->wds_port[((lp->txF.port >> 8) - 
1)].stats.tx_packets++;
                        lp->wds_port[((lp->txF.port >> 8) - 1)].stats.tx_bytes 
+= lp->txF.skb->len;
                }
@@ -910,8 +909,7 @@ int wl_rx(struct net_device *dev)
                                                lp->stats.rx_bytes += pktlen;
                                        }
 #ifdef USE_WDS
-                                       else
-                                       {
+                                       else {
                                                
lp->wds_port[port-1].stats.rx_packets++;
                                                
lp->wds_port[port-1].stats.rx_bytes += pktlen;
                                        }
@@ -1095,8 +1093,7 @@ void wl_multicast(struct net_device *dev, int num_addrs, 
void *addrs)
 
 #endif /* NEW_MULTICAST */
 
-static const struct net_device_ops wl_netdev_ops =
-{
+static const struct net_device_ops wl_netdev_ops = {
        .ndo_start_xmit         = &wl_tx_port0,
 
        .ndo_set_config         = &wl_config,
@@ -1150,8 +1147,7 @@ struct net_device * wl_device_alloc(void)
 
 
        /* Check MTU */
-       if (dev->mtu > MTU_MAX)
-       {
+       if (dev->mtu > MTU_MAX) {
                DBG_WARNING(DbgInfo, "%s: MTU set too high, limiting to %d.\n",
                        dev->name, MTU_MAX);
                dev->mtu = MTU_MAX;
@@ -1795,8 +1791,7 @@ int wl_rx_dma(struct net_device *dev)
        /* { */
                desc = hcf_dma_rx_get(&(lp->hcfCtx));
 
-               if (desc != NULL)
-               {
+               if (desc != NULL) {
 /* Check and see if we rcvd. a WMP frame */
 /*
                if (((*(hcf_8 *)&desc->buf_addr[HFS_STAT]) &
@@ -1831,8 +1826,7 @@ int wl_rx_dma(struct net_device *dev)
                        hfs_stat = (hcf_16)(desc->buf_addr[HFS_STAT/2]);
 
                        /* Make sure the frame isn't bad */
-                       if ((hfs_stat & HFS_STAT_ERR) != HCF_SUCCESS)
-                       {
+                       if ((hfs_stat & HFS_STAT_ERR) != HCF_SUCCESS) {
                                DBG_WARNING(DbgInfo, "HFS_STAT_ERROR (0x%x) in 
Rx Packet\n",
                                desc->buf_addr[HFS_STAT/2]);
 
@@ -1879,8 +1873,7 @@ int wl_rx_dma(struct net_device *dev)
                                                lp->stats.rx_bytes += pktlen;
                                        }
 #ifdef USE_WDS
-                                       else
-                                       {
+                                       else {
                                                
lp->wds_port[port-1].stats.rx_packets++;
                                                
lp->wds_port[port-1].stats.rx_bytes += pktlen;
                                        }
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to