aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/pcmcia
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/pcmcia
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/pcmcia')
-rw-r--r--drivers/net/pcmcia/axnet_cs.c4
-rw-r--r--drivers/net/pcmcia/fmvj18x_cs.c20
-rw-r--r--drivers/net/pcmcia/pcnet_cs.c4
-rw-r--r--drivers/net/pcmcia/smc91c92_cs.c8
-rw-r--r--drivers/net/pcmcia/xirc2ps_cs.c16
5 files changed, 26 insertions, 26 deletions
diff --git a/drivers/net/pcmcia/axnet_cs.c b/drivers/net/pcmcia/axnet_cs.c
index 3131a59a8d32..ca711f46814e 100644
--- a/drivers/net/pcmcia/axnet_cs.c
+++ b/drivers/net/pcmcia/axnet_cs.c
@@ -1232,8 +1232,8 @@ static irqreturn_t ax_interrupt(int irq, void *dev_id)
1232 ei_local->irqlock = 1; 1232 ei_local->irqlock = 1;
1233 1233
1234 /* !!Assumption!! -- we stay in page 0. Don't break this. */ 1234 /* !!Assumption!! -- we stay in page 0. Don't break this. */
1235 while ((interrupts = inb_p(e8390_base + EN0_ISR)) != 0 1235 while ((interrupts = inb_p(e8390_base + EN0_ISR)) != 0 &&
1236 && ++nr_serviced < MAX_SERVICE) 1236 ++nr_serviced < MAX_SERVICE)
1237 { 1237 {
1238 if (!netif_running(dev) || (interrupts == 0xff)) { 1238 if (!netif_running(dev) || (interrupts == 0xff)) {
1239 if (ei_debug > 1) 1239 if (ei_debug > 1)
diff --git a/drivers/net/pcmcia/fmvj18x_cs.c b/drivers/net/pcmcia/fmvj18x_cs.c
index 57e09616330a..a6961215cd56 100644
--- a/drivers/net/pcmcia/fmvj18x_cs.c
+++ b/drivers/net/pcmcia/fmvj18x_cs.c
@@ -371,9 +371,9 @@ static int fmvj18x_config(struct pcmcia_device *link)
371 switch (link->manf_id) { 371 switch (link->manf_id) {
372 case MANFID_TDK: 372 case MANFID_TDK:
373 cardtype = TDK; 373 cardtype = TDK;
374 if (link->card_id == PRODID_TDK_GN3410 374 if (link->card_id == PRODID_TDK_GN3410 ||
375 || link->card_id == PRODID_TDK_NP9610 375 link->card_id == PRODID_TDK_NP9610 ||
376 || link->card_id == PRODID_TDK_MN3200) { 376 link->card_id == PRODID_TDK_MN3200) {
377 /* MultiFunction Card */ 377 /* MultiFunction Card */
378 link->conf.ConfigBase = 0x800; 378 link->conf.ConfigBase = 0x800;
379 link->conf.ConfigIndex = 0x47; 379 link->conf.ConfigIndex = 0x47;
@@ -590,11 +590,11 @@ static int fmvj18x_get_hwinfo(struct pcmcia_device *link, u_char *node_id)
590 */ 590 */
591 for (i = 0; i < 0x200; i++) { 591 for (i = 0; i < 0x200; i++) {
592 if (readb(base+i*2) == 0x22) { 592 if (readb(base+i*2) == 0x22) {
593 if (readb(base+(i-1)*2) == 0xff 593 if (readb(base+(i-1)*2) == 0xff &&
594 && readb(base+(i+5)*2) == 0x04 594 readb(base+(i+5)*2) == 0x04 &&
595 && readb(base+(i+6)*2) == 0x06 595 readb(base+(i+6)*2) == 0x06 &&
596 && readb(base+(i+13)*2) == 0xff) 596 readb(base+(i+13)*2) == 0xff)
597 break; 597 break;
598 } 598 }
599 } 599 }
600 600
@@ -1219,8 +1219,8 @@ static void set_rx_mode(struct net_device *dev)
1219 if (dev->flags & IFF_PROMISC) { 1219 if (dev->flags & IFF_PROMISC) {
1220 memset(mc_filter, 0xff, sizeof(mc_filter)); 1220 memset(mc_filter, 0xff, sizeof(mc_filter));
1221 outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */ 1221 outb(3, ioaddr + RX_MODE); /* Enable promiscuous mode */
1222 } else if (dev->mc_count > MC_FILTERBREAK 1222 } else if (dev->mc_count > MC_FILTERBREAK ||
1223 || (dev->flags & IFF_ALLMULTI)) { 1223 (dev->flags & IFF_ALLMULTI)) {
1224 /* Too many to filter perfectly -- accept all multicasts. */ 1224 /* Too many to filter perfectly -- accept all multicasts. */
1225 memset(mc_filter, 0xff, sizeof(mc_filter)); 1225 memset(mc_filter, 0xff, sizeof(mc_filter));
1226 outb(2, ioaddr + RX_MODE); /* Use normal mode. */ 1226 outb(2, ioaddr + RX_MODE); /* Use normal mode. */
diff --git a/drivers/net/pcmcia/pcnet_cs.c b/drivers/net/pcmcia/pcnet_cs.c
index 469684474b72..347eaee855c0 100644
--- a/drivers/net/pcmcia/pcnet_cs.c
+++ b/drivers/net/pcmcia/pcnet_cs.c
@@ -601,8 +601,8 @@ static int pcnet_config(struct pcmcia_device *link)
601 dev->if_port = 0; 601 dev->if_port = 0;
602 } 602 }
603 603
604 if ((link->conf.ConfigBase == 0x03c0) 604 if ((link->conf.ConfigBase == 0x03c0) &&
605 && (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) { 605 (link->manf_id == 0x149) && (link->card_id == 0xc1ab)) {
606 printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n"); 606 printk(KERN_INFO "pcnet_cs: this is an AX88190 card!\n");
607 printk(KERN_INFO "pcnet_cs: use axnet_cs instead.\n"); 607 printk(KERN_INFO "pcnet_cs: use axnet_cs instead.\n");
608 goto failed; 608 goto failed;
diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c
index 7bde2cd34c7e..117b083a10cb 100644
--- a/drivers/net/pcmcia/smc91c92_cs.c
+++ b/drivers/net/pcmcia/smc91c92_cs.c
@@ -526,10 +526,10 @@ static int mhz_mfc_config(struct pcmcia_device *link)
526 mem.CardOffset = link->conf.ConfigBase; 526 mem.CardOffset = link->conf.ConfigBase;
527 i = pcmcia_map_mem_page(link->win, &mem); 527 i = pcmcia_map_mem_page(link->win, &mem);
528 528
529 if ((i == 0) 529 if ((i == 0) &&
530 && (smc->manfid == MANFID_MEGAHERTZ) 530 (smc->manfid == MANFID_MEGAHERTZ) &&
531 && (smc->cardid == PRODID_MEGAHERTZ_EM3288)) 531 (smc->cardid == PRODID_MEGAHERTZ_EM3288))
532 mhz_3288_power(link); 532 mhz_3288_power(link);
533 533
534free_cfg_mem: 534free_cfg_mem:
535 kfree(cfg_mem); 535 kfree(cfg_mem);
diff --git a/drivers/net/pcmcia/xirc2ps_cs.c b/drivers/net/pcmcia/xirc2ps_cs.c
index cf8423102538..187da21f720b 100644
--- a/drivers/net/pcmcia/xirc2ps_cs.c
+++ b/drivers/net/pcmcia/xirc2ps_cs.c
@@ -421,9 +421,9 @@ PrintRegisters(struct net_device *dev)
421 printk("\n"); 421 printk("\n");
422 } 422 }
423 for (page=0x40 ; page <= 0x5f; page++) { 423 for (page=0x40 ; page <= 0x5f; page++) {
424 if (page == 0x43 || (page >= 0x46 && page <= 0x4f) 424 if (page == 0x43 || (page >= 0x46 && page <= 0x4f) ||
425 || (page >= 0x51 && page <=0x5e)) 425 (page >= 0x51 && page <=0x5e))
426 continue; 426 continue;
427 printk(KDBG_XIRC "Register page %2x: ", page); 427 printk(KDBG_XIRC "Register page %2x: ", page);
428 SelectPage(page); 428 SelectPage(page);
429 for (i = 8; i < 16; i++) 429 for (i = 8; i < 16; i++)
@@ -834,9 +834,9 @@ xirc2ps_config(struct pcmcia_device * link)
834 /* Once I saw two CISTPL_FUNCE_LAN_NODE_ID entries: 834 /* Once I saw two CISTPL_FUNCE_LAN_NODE_ID entries:
835 * the first one with a length of zero the second correct - 835 * the first one with a length of zero the second correct -
836 * so I skip all entries with length 0 */ 836 * so I skip all entries with length 0 */
837 if (parse.funce.type == CISTPL_FUNCE_LAN_NODE_ID 837 if (parse.funce.type == CISTPL_FUNCE_LAN_NODE_ID &&
838 && ((cistpl_lan_node_id_t *)parse.funce.data)->nb) 838 ((cistpl_lan_node_id_t *)parse.funce.data)->nb)
839 break; 839 break;
840 } 840 }
841 if (err) { /* not found: try to get the node-id from tuple 0x89 */ 841 if (err) { /* not found: try to get the node-id from tuple 0x89 */
842 tuple.DesiredTuple = 0x89; /* data layout looks like tuple 0x22 */ 842 tuple.DesiredTuple = 0x89; /* data layout looks like tuple 0x22 */
@@ -852,8 +852,8 @@ xirc2ps_config(struct pcmcia_device * link)
852 tuple.DesiredTuple = CISTPL_FUNCE; 852 tuple.DesiredTuple = CISTPL_FUNCE;
853 for (err = first_tuple(link, &tuple, &parse); !err; 853 for (err = first_tuple(link, &tuple, &parse); !err;
854 err = next_tuple(link, &tuple, &parse)) { 854 err = next_tuple(link, &tuple, &parse)) {
855 if (parse.funce.type == 0x02 && parse.funce.data[0] == 1 855 if (parse.funce.type == 0x02 && parse.funce.data[0] == 1 &&
856 && parse.funce.data[1] == 6 && tuple.TupleDataLen == 13) { 856 parse.funce.data[1] == 6 && tuple.TupleDataLen == 13) {
857 buf[1] = 4; 857 buf[1] = 4;
858 memcpy(&parse, buf+1, 8); 858 memcpy(&parse, buf+1, 8);
859 break; 859 break;