[PATCH 07/13] fix most checkpatch.pl issues to line 400

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

 



From: Mike Gilks <kernel.online@xxxxxxxxxxxxxxx>

---
 drivers/staging/rtl8192u/r8192U_core.c |   21 ++++++---------------
 1 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/drivers/staging/rtl8192u/r8192U_core.c b/drivers/staging/rtl8192u/r8192U_core.c
index ac620a5..ae388f7 100644
--- a/drivers/staging/rtl8192u/r8192U_core.c
+++ b/drivers/staging/rtl8192u/r8192U_core.c
@@ -315,9 +315,8 @@ void write_nic_byte_E(struct net_device *dev, int indx, u8 data)
 			       RTL8187_REQ_SET_REGS, RTL8187_REQT_WRITE,
 			       indx|0xfe00, 0, &data, 1, HZ / 2);
 
-	if (status < 0) {
+	if (status < 0)
 		printk("write_nic_byte_E TimeOut! status:%d\n", status);
-	}
 }
 
 u8 read_nic_byte_E(struct net_device *dev, int indx)
@@ -331,9 +330,8 @@ u8 read_nic_byte_E(struct net_device *dev, int indx)
 			       RTL8187_REQ_GET_REGS, RTL8187_REQT_READ,
 			       indx|0xfe00, 0, &data, 1, HZ / 2);
 
-	if (status < 0) {
+	if (status < 0)
 		printk("read_nic_byte_E TimeOut! status:%d\n", status);
-	}
 
 	return data;
 }
@@ -351,10 +349,8 @@ void write_nic_byte(struct net_device *dev, int indx, u8 data)
 				       (indx&0xff)|0xff00, (indx>>8)&0x0f,
 							&data, 1, HZ / 2);
 
-	if (status < 0) {
+	if (status < 0)
 		printk("write_nic_byte TimeOut! status:%d\n", status);
-	}
-
 
 }
 
@@ -370,9 +366,8 @@ void write_nic_word(struct net_device *dev, int indx, u16 data)
 					(indx&0xff)|0xff00, (indx>>8)&0x0f,
 							&data, 2, HZ / 2);
 
-	if (status < 0) {
+	if (status < 0)
 		printk("write_nic_word TimeOut! status:%d\n", status);
-	}
 
 }
 
@@ -388,13 +383,10 @@ void write_nic_dword(struct net_device *dev, int indx, u32 data)
 					(indx&0xff)|0xff00, (indx>>8)&0x0f,
 							&data, 4, HZ / 2);
 
-	if (status < 0) {
+	if (status < 0)
 		printk("write_nic_dword TimeOut! status:%d\n", status);
-	}
 }
 
-
-
 u8 read_nic_byte(struct net_device *dev, int indx)
 {
 	u8 data;
@@ -407,9 +399,8 @@ u8 read_nic_byte(struct net_device *dev, int indx)
 					(indx&0xff)|0xff00, (indx>>8)&0x0f,
 							&data, 1, HZ / 2);
 
-	if (status < 0) {
+	if (status < 0)
 		printk("read_nic_byte TimeOut! status:%d\n", status);
-	}
 
 	return data;
 }
-- 
1.6.3.3

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/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