diff options
author | Joe Perches <joe@perches.com> | 2009-12-03 02:58:21 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-03 16:18:01 -0500 |
commit | 8e95a2026f3b43f7c3d676adaccd2de9532e8dcc (patch) | |
tree | 3733318168cd512480b6db58c5c16d1c8847f0b7 /drivers/net/wan/sbni.c | |
parent | 3454f835837609d60b29a266e3bd9d701073b060 (diff) |
drivers/net: Move && and || to end of previous line
Only files where David Miller is the primary git-signer.
wireless, wimax, ixgbe, etc are not modified.
Compile tested x86 allyesconfig only
Not all files compiled (not x86 compatible)
Added a few > 80 column lines, which I ignored.
Existing checkpatch complaints ignored.
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan/sbni.c')
-rw-r--r-- | drivers/net/wan/sbni.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/wan/sbni.c b/drivers/net/wan/sbni.c index 1cc24a45f003..25477b5cde47 100644 --- a/drivers/net/wan/sbni.c +++ b/drivers/net/wan/sbni.c | |||
@@ -195,9 +195,9 @@ static unsigned int netcard_portlist[ ] __initdata = { | |||
195 | static inline int __init | 195 | static inline int __init |
196 | sbni_isa_probe( struct net_device *dev ) | 196 | sbni_isa_probe( struct net_device *dev ) |
197 | { | 197 | { |
198 | if( dev->base_addr > 0x1ff | 198 | if( dev->base_addr > 0x1ff && |
199 | && request_region( dev->base_addr, SBNI_IO_EXTENT, dev->name ) | 199 | request_region( dev->base_addr, SBNI_IO_EXTENT, dev->name ) && |
200 | && sbni_probe1( dev, dev->base_addr, dev->irq ) ) | 200 | sbni_probe1( dev, dev->base_addr, dev->irq ) ) |
201 | 201 | ||
202 | return 0; | 202 | return 0; |
203 | else { | 203 | else { |
@@ -286,8 +286,8 @@ static int __init sbni_init(struct net_device *dev) | |||
286 | 286 | ||
287 | for( i = 0; netcard_portlist[ i ]; ++i ) { | 287 | for( i = 0; netcard_portlist[ i ]; ++i ) { |
288 | int ioaddr = netcard_portlist[ i ]; | 288 | int ioaddr = netcard_portlist[ i ]; |
289 | if( request_region( ioaddr, SBNI_IO_EXTENT, dev->name ) | 289 | if( request_region( ioaddr, SBNI_IO_EXTENT, dev->name ) && |
290 | && sbni_probe1( dev, ioaddr, 0 )) | 290 | sbni_probe1( dev, ioaddr, 0 )) |
291 | return 0; | 291 | return 0; |
292 | } | 292 | } |
293 | 293 | ||
@@ -306,9 +306,9 @@ sbni_pci_probe( struct net_device *dev ) | |||
306 | unsigned long pci_ioaddr; | 306 | unsigned long pci_ioaddr; |
307 | u16 subsys; | 307 | u16 subsys; |
308 | 308 | ||
309 | if( pdev->vendor != SBNI_PCI_VENDOR | 309 | if( pdev->vendor != SBNI_PCI_VENDOR && |
310 | && pdev->device != SBNI_PCI_DEVICE ) | 310 | pdev->device != SBNI_PCI_DEVICE ) |
311 | continue; | 311 | continue; |
312 | 312 | ||
313 | pci_ioaddr = pci_resource_start( pdev, 0 ); | 313 | pci_ioaddr = pci_resource_start( pdev, 0 ); |
314 | pci_irq_line = pdev->irq; | 314 | pci_irq_line = pdev->irq; |
@@ -977,8 +977,8 @@ check_fhdr( u32 ioaddr, u32 *framelen, u32 *frameno, u32 *ack, | |||
977 | *ack = *framelen & FRAME_ACK_MASK; | 977 | *ack = *framelen & FRAME_ACK_MASK; |
978 | *is_first = (*framelen & FRAME_FIRST) != 0; | 978 | *is_first = (*framelen & FRAME_FIRST) != 0; |
979 | 979 | ||
980 | if( (*framelen &= FRAME_LEN_MASK) < 6 | 980 | if( (*framelen &= FRAME_LEN_MASK) < 6 || |
981 | || *framelen > SBNI_MAX_FRAME - 3 ) | 981 | *framelen > SBNI_MAX_FRAME - 3 ) |
982 | return 0; | 982 | return 0; |
983 | 983 | ||
984 | value = inb( ioaddr + DAT ); | 984 | value = inb( ioaddr + DAT ); |
@@ -1173,10 +1173,10 @@ sbni_open( struct net_device *dev ) | |||
1173 | if( dev->base_addr < 0x400 ) { /* ISA only */ | 1173 | if( dev->base_addr < 0x400 ) { /* ISA only */ |
1174 | struct net_device **p = sbni_cards; | 1174 | struct net_device **p = sbni_cards; |
1175 | for( ; *p && p < sbni_cards + SBNI_MAX_NUM_CARDS; ++p ) | 1175 | for( ; *p && p < sbni_cards + SBNI_MAX_NUM_CARDS; ++p ) |
1176 | if( (*p)->irq == dev->irq | 1176 | if( (*p)->irq == dev->irq && |
1177 | && ((*p)->base_addr == dev->base_addr + 4 | 1177 | ((*p)->base_addr == dev->base_addr + 4 || |
1178 | || (*p)->base_addr == dev->base_addr - 4) | 1178 | (*p)->base_addr == dev->base_addr - 4) && |
1179 | && (*p)->flags & IFF_UP ) { | 1179 | (*p)->flags & IFF_UP ) { |
1180 | 1180 | ||
1181 | ((struct net_local *) (netdev_priv(*p))) | 1181 | ((struct net_local *) (netdev_priv(*p))) |
1182 | ->second = dev; | 1182 | ->second = dev; |