[PATCH 11/12] staging: wlan-ng: remove unnecessary braces from if

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove braces from an if statement with only a single line in the if
block.

Signed-off-by: Tim Collier <osdevtc@xxxxxxxxx>
---
 drivers/staging/wlan-ng/hfa384x_usb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 6261881e9bcd..4824b37b27a3 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -3623,10 +3623,9 @@ static void hfa384x_usbout_callback(struct urb *urb)
 			struct hfa384x *hw = wlandev->priv;
 
 			if (!test_and_set_bit(THROTTLE_TX, &hw->usb_flags) &&
-			    !timer_pending(&hw->throttle)) {
+			    !timer_pending(&hw->throttle))
 				mod_timer(&hw->throttle,
 					  jiffies + THROTTLE_JIFFIES);
-			}
 			wlandev->netdev->stats.tx_errors++;
 			netif_stop_queue(wlandev->netdev);
 			break;
-- 
2.11.0

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux