Prev: (none)
Next: [GIT PULL] XFS update for 2.6.35-rc2
From: Mike Gilks on 5 Jun 2010 06:40 From: Mike Gilks <kernel.online(a)gilksonline.com> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
|
Pages: 1 Prev: (none) Next: [GIT PULL] XFS update for 2.6.35-rc2 |