aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/at1700.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2009-12-03 02:58:21 -0500
committerDavid S. Miller <davem@davemloft.net>2009-12-03 16:18:01 -0500
commit8e95a2026f3b43f7c3d676adaccd2de9532e8dcc (patch)
tree3733318168cd512480b6db58c5c16d1c8847f0b7 /drivers/net/at1700.c
parent3454f835837609d60b29a266e3bd9d701073b060 (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/at1700.c')
-rw-r--r--drivers/net/at1700.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/net/at1700.c b/drivers/net/at1700.c
index d4ab69f032b..b14f4799d5d 100644
--- a/drivers/net/at1700.c
+++ b/drivers/net/at1700.c
@@ -350,13 +350,13 @@ static int __init at1700_probe1(struct net_device *dev, int ioaddr)
350 slot = -1; 350 slot = -1;
351 /* We must check for the EEPROM-config boards first, else accessing 351 /* We must check for the EEPROM-config boards first, else accessing
352 IOCONFIG0 will move the board! */ 352 IOCONFIG0 will move the board! */
353 if (at1700_probe_list[inb(ioaddr + IOCONFIG1) & 0x07] == ioaddr 353 if (at1700_probe_list[inb(ioaddr + IOCONFIG1) & 0x07] == ioaddr &&
354 && read_eeprom(ioaddr, 4) == 0x0000 354 read_eeprom(ioaddr, 4) == 0x0000 &&
355 && (read_eeprom(ioaddr, 5) & 0xff00) == 0xF400) 355 (read_eeprom(ioaddr, 5) & 0xff00) == 0xF400)
356 is_at1700 = 1; 356 is_at1700 = 1;
357 else if (inb(ioaddr + SAPROM ) == 0x00 357 else if (inb(ioaddr + SAPROM ) == 0x00 &&
358 && inb(ioaddr + SAPROM + 1) == 0x00 358 inb(ioaddr + SAPROM + 1) == 0x00 &&
359 && inb(ioaddr + SAPROM + 2) == 0x0e) 359 inb(ioaddr + SAPROM + 2) == 0x0e)
360 is_fmv18x = 1; 360 is_fmv18x = 1;
361 else { 361 else {
362 goto err_out; 362 goto err_out;
@@ -839,8 +839,8 @@ set_rx_mode(struct net_device *dev)
839 if (dev->flags & IFF_PROMISC) { 839 if (dev->flags & IFF_PROMISC) {
840 memset(mc_filter, 0xff, sizeof(mc_filter)); 840 memset(mc_filter, 0xff, sizeof(mc_filter));
841 outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ 841 outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */
842 } else if (dev->mc_count > MC_FILTERBREAK 842 } else if (dev->mc_count > MC_FILTERBREAK ||
843 || (dev->flags & IFF_ALLMULTI)) { 843 (dev->flags & IFF_ALLMULTI)) {
844 /* Too many to filter perfectly -- accept all multicasts. */ 844 /* Too many to filter perfectly -- accept all multicasts. */
845 memset(mc_filter, 0xff, sizeof(mc_filter)); 845 memset(mc_filter, 0xff, sizeof(mc_filter));
846 outb(2, ioaddr + RX_MODE); /* Use normal mode. */ 846 outb(2, ioaddr + RX_MODE); /* Use normal mode. */