staging: unisys: visornic: visornic_main.c: Adjust whitespace usage
authorDavid Binder <david.binder@unisys.com>
Mon, 17 Jul 2017 20:16:46 +0000 (16:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:48:40 +0000 (08:48 +0200)
Adjusts whitespace usage in order to create a more uniform coding style.

Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visornic/visornic_main.c

index 5c2614b..5ae8401 100644 (file)
@@ -312,9 +312,7 @@ static const struct file_operations debugfs_enable_ints_fops = {
 static void
 visornic_serverdown_complete(struct visornic_devdata *devdata)
 {
-       struct net_device *netdev;
-
-       netdev = devdata->netdev;
+       struct net_device *netdev = devdata->netdev;
 
        /* Stop polling for interrupts */
        del_timer_sync(&devdata->irq_poll_timer);
@@ -450,7 +448,6 @@ post_skb(struct uiscmdrsp *cmdrsp,
 
        atomic_inc(&devdata->num_rcvbuf_in_iovm);
        devdata->chstat.sent_post++;
-
        return 0;
 }
 
@@ -492,7 +489,6 @@ send_enbdis(struct net_device *netdev, int state,
  *     are disabled, reclaim memory from rcv bufs.
  *     Returns 0 on success, negative for failure of IO Partition
  *     responding.
- *
  */
 static int
 visornic_disable_with_timeout(struct net_device *netdev, const int timeout)
@@ -711,7 +707,6 @@ visornic_enable_with_timeout(struct net_device *netdev, const int timeout)
        }
 
        netif_start_queue(netdev);
-
        return 0;
 }
 
@@ -769,7 +764,6 @@ static int
 visornic_open(struct net_device *netdev)
 {
        visornic_enable_with_timeout(netdev, VISORNIC_INFINITE_RSP_WAIT);
-
        return 0;
 }
 
@@ -784,7 +778,6 @@ static int
 visornic_close(struct net_device *netdev)
 {
        visornic_disable_with_timeout(netdev, VISORNIC_INFINITE_RSP_WAIT);
-
        return 0;
 }
 
@@ -954,6 +947,7 @@ visornic_xmit(struct sk_buff *skb, struct net_device *netdev)
         * - everything else will be pass in frags & DMA'ed
         */
        memcpy(cmdrsp->net.xmt.ethhdr, skb->data, ETH_HLEN);
+
        /* copy frags info - from skb->data we need to only provide access
         * beyond eth header
         */
@@ -1333,9 +1327,7 @@ visornic_rx(struct uiscmdrsp *cmdrsp)
         * sets up skb->pkt_type & it also PULLS out the eth header
         */
        skb->protocol = eth_type_trans(skb, netdev);
-
        eth = eth_hdr(skb);
-
        skb->csum = 0;
        skb->ip_summed = CHECKSUM_NONE;
 
@@ -2184,7 +2176,6 @@ static int visornic_init(void)
 
 cleanup_debugfs:
        debugfs_remove_recursive(visornic_debugfs_dir);
-
        return err;
 }
 
@@ -2196,7 +2187,6 @@ cleanup_debugfs:
 static void visornic_cleanup(void)
 {
        visorbus_unregister_visor_driver(&visornic_driver);
-
        debugfs_remove_recursive(visornic_debugfs_dir);
 }