can: ems_usb: fix coding style
authorMarc Kleine-Budde <mkl@pengutronix.de>
Wed, 24 Feb 2016 08:15:43 +0000 (09:15 +0100)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Fri, 26 Feb 2016 07:43:18 +0000 (08:43 +0100)
This patch fixes the coding style issues introduced in commit:

    90cfde46586d can: ems_usb: Fix possible tx overflow

Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/ems_usb.c

index eb7192fab5932bcde88f31f0b90604997e27a524..3400fd1cada7152dbd0ad2c5df4626b52c8bd1a0 100644 (file)
@@ -281,11 +281,9 @@ static void ems_usb_read_interrupt_callback(struct urb *urb)
        switch (urb->status) {
        case 0:
                dev->free_slots = dev->intr_in_buffer[1];
-               if(dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH){
-                       if (netif_queue_stopped(netdev)){
-                               netif_wake_queue(netdev);
-                       }
-               }
+               if (dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH &&
+                   netif_queue_stopped(netdev))
+                       netif_wake_queue(netdev);
                break;
 
        case -ECONNRESET: /* unlink */