can: ems_usb: fix coding style

This patch fixes the coding style issues introduced in commit:

    90cfde4658 can: ems_usb: Fix possible tx overflow

Reported-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2016-02-24 09:15:43 +01:00
parent 8d3f2806f8
commit 59097ac9b2
1 changed files with 3 additions and 5 deletions

View File

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