diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2016-02-24 03:15:43 -0500 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2016-02-26 02:43:18 -0500 |
commit | 59097ac9b20a0318b2b99b3338c0bb066309583e (patch) | |
tree | 74e33a0d69566a5fc6930b55ec9844ace40c687e | |
parent | 8d3f2806f8fbd9b222b3504580b5eaa9ba2964b8 (diff) |
can: ems_usb: fix coding style
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>
-rw-r--r-- | drivers/net/can/usb/ems_usb.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/can/usb/ems_usb.c b/drivers/net/can/usb/ems_usb.c index eb7192fab593..3400fd1cada7 100644 --- a/drivers/net/can/usb/ems_usb.c +++ b/drivers/net/can/usb/ems_usb.c | |||
@@ -281,11 +281,9 @@ static void ems_usb_read_interrupt_callback(struct urb *urb) | |||
281 | switch (urb->status) { | 281 | switch (urb->status) { |
282 | case 0: | 282 | case 0: |
283 | dev->free_slots = dev->intr_in_buffer[1]; | 283 | dev->free_slots = dev->intr_in_buffer[1]; |
284 | if(dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH){ | 284 | if (dev->free_slots > CPC_TX_QUEUE_TRIGGER_HIGH && |
285 | if (netif_queue_stopped(netdev)){ | 285 | netif_queue_stopped(netdev)) |
286 | netif_wake_queue(netdev); | 286 | netif_wake_queue(netdev); |
287 | } | ||
288 | } | ||
289 | break; | 287 | break; |
290 | 288 | ||
291 | case -ECONNRESET: /* unlink */ | 289 | case -ECONNRESET: /* unlink */ |