diff for duplicates of <20070120140311.GU9093@stusta.de> diff --git a/a/1.txt b/N1/1.txt index 565c83f..ccb447f 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -685,8 +685,10 @@ This patch was already sent on: - char *name, const char *routine) -{ -#ifdef AURORA_PARANOIA_CHECK -- static const char *badmagic - KERN_DEBUG "aurora: Warning: bad aurora port magic number for device %s in %s\n"; -- static const char *badinfo - KERN_DEBUG "aurora: Warning: null aurora port for device %s in %s\n"; +- static const char *badmagic = +- KERN_DEBUG "aurora: Warning: bad aurora port magic number for device %s in %s\n"; +- static const char *badinfo = +- KERN_DEBUG "aurora: Warning: null aurora port for device %s in %s\n"; - - if (!port) { - printk(badinfo, name, routine); @@ -778,7 +780,7 @@ This patch was already sent on: - sbus_writeb(CCR_HARDRESET, &bp->r[chip]->r[CD180_CCR]); - udelay(1); - sti(); -- id\x1000; +- id=1000; - while((--id) && - (sbus_readb(&bp->r[chip]->r[CD180_GSVR])!=0xff))udelay(100); - if(!id) { @@ -834,7 +836,7 @@ This patch was already sent on: -{ -int i; -for(i=0;i<TYPE_1_IRQS;i++) -- if (type_1_irq[i]=irq) return 1; +- if (type_1_irq[i]==irq) return 1; -return 0; -} - @@ -858,8 +860,8 @@ This patch was already sent on: - printk(KERN_INFO "aurora: sio16 at %p\n",sdev); -#endif - if((sdev->reg_addrs[0].reg_size!=1) && -- (sdev->reg_addrs[1].reg_size!\x128) && -- (sdev->reg_addrs[2].reg_size!\x128) && +- (sdev->reg_addrs[1].reg_size!=128) && +- (sdev->reg_addrs[2].reg_size!=128) && - (sdev->reg_addrs[3].reg_size!=4)) { - printk(KERN_ERR "aurora%d: registers' sizes " - "do not match.\n", bn); @@ -870,7 +872,7 @@ This patch was already sent on: - sbus_ioremap(&sdev->resource[0], 0, - sdev->reg_addrs[0].reg_size, - "sio16"); -- if (bp->r0 = NULL) { +- if (bp->r0 == NULL) { - printk(KERN_ERR "aurora%d: can't map " - "reg_addrs[0]\n", bn); - break; @@ -882,7 +884,7 @@ This patch was already sent on: - sbus_ioremap(&sdev->resource[1], 0, - sdev->reg_addrs[1].reg_size, - "sio16"); -- if (bp->r[0] = NULL) { +- if (bp->r[0] == NULL) { - printk(KERN_ERR "aurora%d: can't map " - "reg_addrs[1]\n", bn); - break; @@ -894,7 +896,7 @@ This patch was already sent on: - sbus_ioremap(&sdev->resource[2], 0, - sdev->reg_addrs[2].reg_size, - "sio16"); -- if (bp->r[1] = NULL) { +- if (bp->r[1] == NULL) { - printk(KERN_ERR "aurora%d: can't map " - "reg_addrs[2]\n", bn); - break; @@ -906,7 +908,7 @@ This patch was already sent on: - sbus_ioremap(&sdev->resource[3], 0, - sdev->reg_addrs[3].reg_size, - "sio16"); -- if (bp->r3 = NULL) { +- if (bp->r3 == NULL) { - printk(KERN_ERR "aurora%d: can't map " - "reg_addrs[3]\n", bn); - break; @@ -941,7 +943,7 @@ This patch was already sent on: - bp->flags=0xff; - } - } -- if(bp->flags=0xff)break; +- if(bp->flags==0xff)break; - printk(KERN_INFO "aurora%d: irq %d\n",bn,bp->irq&0x0f); - buf[0]=0; - grrr=prom_getproperty(sdev->prom_node,"dtr_rts",buf,sizeof(buf)); @@ -949,23 +951,23 @@ This patch was already sent on: - printk(KERN_INFO "aurora%d: Swapped DTR and RTS\n",bn); - bp->DTR=MSVR_RTS; - bp->RTS=MSVR_DTR; -- bp->MSVDTRÍ180_MSVRTS; -- bp->MSVRTSÍ180_MSVDTR; +- bp->MSVDTR=CD180_MSVRTS; +- bp->MSVRTS=CD180_MSVDTR; - bp->flags|=AURORA_BOARD_DTR_FLOW_OK; - }else{ - #ifdef AURORA_FORCE_DTR_FLOW - printk(KERN_INFO "aurora%d: Forcing swapped DTR-RTS\n",bn); - bp->DTR=MSVR_RTS; - bp->RTS=MSVR_DTR; -- bp->MSVDTRÍ180_MSVRTS; -- bp->MSVRTSÍ180_MSVDTR; +- bp->MSVDTR=CD180_MSVRTS; +- bp->MSVRTS=CD180_MSVDTR; - bp->flags|=AURORA_BOARD_DTR_FLOW_OK; - #else - printk(KERN_INFO "aurora%d: Normal DTR and RTS\n",bn); - bp->DTR=MSVR_DTR; - bp->RTS=MSVR_RTS; -- bp->MSVDTRÍ180_MSVDTR; -- bp->MSVRTSÍ180_MSVRTS; +- bp->MSVDTR=CD180_MSVDTR; +- bp->MSVRTS=CD180_MSVRTS; - #endif - } - bp->oscfreq=prom_getint(sdev->prom_node,"clk")*100; @@ -1311,13 +1313,13 @@ This patch was already sent on: -#ifdef AURORA_INT_DEBUG - printk("R-ACK %02x\n", ack); -#endif -- if ((ack >> 5) = board_No(bp)) { +- if ((ack >> 5) == board_No(bp)) { - if ((chip=((ack>>3)&3)-1) < AURORA_NCD180) { -- if ((ack&GSVR_ITMASK)=GSVR_IT_RGD) { +- if ((ack&GSVR_ITMASK)==GSVR_IT_RGD) { - aurora_receive(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); -- } else if ((ack & GSVR_ITMASK) = GSVR_IT_REXC) { +- } else if ((ack & GSVR_ITMASK) == GSVR_IT_REXC) { - aurora_receive_exc(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); @@ -1329,9 +1331,9 @@ This patch was already sent on: -#ifdef AURORA_INT_DEBUG - printk("T-ACK %02x\n", ack); -#endif -- if ((ack >> 5) = board_No(bp)) { +- if ((ack >> 5) == board_No(bp)) { - if ((chip=((ack>>3)&3)-1) < AURORA_NCD180) { -- if ((ack&GSVR_ITMASK)=GSVR_IT_TX) { +- if ((ack&GSVR_ITMASK)==GSVR_IT_TX) { - aurora_transmit(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); @@ -1343,9 +1345,9 @@ This patch was already sent on: -#ifdef AURORA_INT_DEBUG - printk("M-ACK %02x\n", ack); -#endif -- if ((ack >> 5) = board_No(bp)) { +- if ((ack >> 5) == board_No(bp)) { - if ((chip = ((ack>>3)&3)-1) < AURORA_NCD180) { -- if ((ack&GSVR_ITMASK)=GSVR_IT_MDM) { +- if ((ack&GSVR_ITMASK)==GSVR_IT_MDM) { - aurora_check_modem(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); @@ -1364,22 +1366,22 @@ This patch was already sent on: -#ifdef AURORA_INT_DEBUG - printk("ACK: %02x\n",ack); -#endif -- if ((ack>>5)=board_No(bp)) { +- if ((ack>>5)==board_No(bp)) { - if ((chip=((ack>>3)&3)-1) < AURORA_NCD180) { - ack&=GSVR_ITMASK; -- if (ack=GSVR_IT_RGD) { +- if (ack==GSVR_IT_RGD) { - aurora_receive(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); -- } else if (ack=GSVR_IT_REXC) { +- } else if (ack==GSVR_IT_REXC) { - aurora_receive_exc(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); -- } else if (ack=GSVR_IT_TX) { +- } else if (ack==GSVR_IT_TX) { - aurora_transmit(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); -- } else if (ack=GSVR_IT_MDM) { +- } else if (ack==GSVR_IT_MDM) { - aurora_check_modem(bp,chip); - sbus_writeb(0, - &bp->r[chip]->r[CD180_EOSRR]); @@ -1400,12 +1402,12 @@ This patch was already sent on: - - if (status & SRSR_REXT) { - ack = sbus_readb(&bp->r3->r[bp->ACK_RINT]); -- if (ack = (chip_id | GSVR_IT_RGD)) { +- if (ack == (chip_id | GSVR_IT_RGD)) { -#ifdef AURORA_INTMSG - printk("RX ACK\n"); -#endif - aurora_receive(bp,chip); -- } else if (ack = (chip_id | GSVR_IT_REXC)) { +- } else if (ack == (chip_id | GSVR_IT_REXC)) { -#ifdef AURORA_INTMSG - printk("RXC ACK\n"); -#endif @@ -1418,7 +1420,7 @@ This patch was already sent on: - } - } else if (status & SRSR_TEXT) { - ack = sbus_readb(&bp->r3->r[bp->ACK_TINT]); -- if (ack = (chip_id | GSVR_IT_TX)){ +- if (ack == (chip_id | GSVR_IT_TX)){ -#ifdef AURORA_INTMSG - printk("TX ACK\n"); -#endif @@ -1431,7 +1433,7 @@ This patch was already sent on: - } - } else if (status & SRSR_MEXT) { - ack = sbus_readb(&bp->r3->r[bp->ACK_MINT]); -- if (ack = (chip_id | GSVR_IT_MDM)){ +- if (ack == (chip_id | GSVR_IT_MDM)){ -#ifdef AURORA_INTMSG - printk("MDM ACK\n"); -#endif @@ -1521,7 +1523,7 @@ This patch was already sent on: - - if (aurora_init_CD180(bp,0))error=1;error=0; - if (aurora_init_CD180(bp,1))error++; -- if (error = AURORA_NCD180) { +- if (error == AURORA_NCD180) { - printk(KERN_ERR "Both chips failed initialisation.\n"); - return -EIO; - } @@ -1782,7 +1784,7 @@ This patch was already sent on: - clear_bit(TTY_IO_ERROR, &port->tty->flags); - -#ifdef MODULE -- if ((port->count = 1) && ((++bp->count) = 1)) +- if ((port->count == 1) && ((++bp->count) == 1)) - bp->flags |= AURORA_BOARD_ACTIVE; -#endif - @@ -2048,7 +2050,7 @@ This patch was already sent on: - } - - bp = port_Board(port); -- if ((tty->count = 1) && (port->count != 1)) { +- if ((tty->count == 1) && (port->count != 1)) { - printk(KERN_DEBUG "aurora%d: aurora_close: bad port count; " - "tty->count is 1, port count is %d\n", - board_No(bp), port->count); @@ -2430,12 +2432,14 @@ This patch was already sent on: - return -EINVAL; -#endif - -- change_speed = ((port->flags & ASYNC_SPD_MASK) !- (tmp.flags & ASYNC_SPD_MASK)); +- change_speed = ((port->flags & ASYNC_SPD_MASK) != +- (tmp.flags & ASYNC_SPD_MASK)); - - if (!capable(CAP_SYS_ADMIN)) { - if ((tmp.close_delay != port->close_delay) || - (tmp.closing_wait != port->closing_wait) || -- ((tmp.flags & ~ASYNC_USR_MASK) !- (port->flags & ~ASYNC_USR_MASK))) +- ((tmp.flags & ~ASYNC_USR_MASK) != +- (port->flags & ~ASYNC_USR_MASK))) - return -EPERM; - port->flags = ((port->flags & ~ASYNC_USR_MASK) | - (tmp.flags & ASYNC_USR_MASK)); @@ -2519,7 +2523,8 @@ This patch was already sent on: - case TIOCSSOFTCAR: - if (get_user(arg,(unsigned long *)arg)) - return -EFAULT; -- tty->termios->c_cflag - ((tty->termios->c_cflag & ~CLOCAL) | +- tty->termios->c_cflag = +- ((tty->termios->c_cflag & ~CLOCAL) | - (arg ? CLOCAL : 0)); - return 0; - case TIOCGSERIAL: @@ -2725,8 +2730,8 @@ This patch was already sent on: - if ((aurora_paranoia_check(port, tty->name, "aurora_set_termios")) - return; - -- if (tty->termios->c_cflag = old_termios->c_cflag && -- tty->termios->c_iflag = old_termios->c_iflag) +- if (tty->termios->c_cflag == old_termios->c_cflag && +- tty->termios->c_iflag == old_termios->c_iflag) - return; - - save_flags(flags); cli(); @@ -2757,7 +2762,7 @@ This patch was already sent on: - printk("do_softint: start\n"); -#endif - tty = port->tty; -- if (tty = NULL) +- if (tty == NULL) - return; - - if (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &port->event)) { @@ -2797,7 +2802,7 @@ This patch was already sent on: - printk("aurora_init_drivers: start\n"); -#endif - tmp_buf = (unsigned char *) get_zeroed_page(GFP_KERNEL); -- if (tmp_buf = NULL) { +- if (tmp_buf == NULL) { - printk(KERN_ERR "aurora: Couldn't get free page.\n"); - return 1; - } @@ -2814,7 +2819,8 @@ This patch was already sent on: - aurora_driver->type = TTY_DRIVER_TYPE_SERIAL; - aurora_driver->subtype = SERIAL_TYPE_NORMAL; - aurora_driver->init_termios = tty_std_termios; -- aurora_driver->init_termios.c_cflag - B9600 | CS8 | CREAD | HUPCL | CLOCAL; +- aurora_driver->init_termios.c_cflag = +- B9600 | CS8 | CREAD | HUPCL | CLOCAL; - aurora_driver->flags = TTY_DRIVER_REAL_RAW; - tty_set_operations(aurora_driver, &aurora_ops); - error = tty_register_driver(aurora_driver); diff --git a/a/content_digest b/N1/content_digest index 608a40c..48512a8 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,7 +1,6 @@ - "ref\020070104185338.GH20714@stusta.de\0" "From\0Adrian Bunk <bunk@stusta.de>\0" "Subject\0[RFC: 2.6 patch] remove the broken SUN_AURORA driver\0" - "Date\0Sat, 20 Jan 2007 14:03:11 +0000\0" + "Date\0Sat, 20 Jan 2007 15:03:11 +0100\0" "To\0Andrew Morton <akpm@osdl.org>\0" "Cc\0sparclinux@vger.kernel.org" " linux-kernel@vger.kernel.org\0" @@ -694,8 +693,10 @@ "-\t\t\t\t char *name, const char *routine)\n" "-{\n" "-#ifdef AURORA_PARANOIA_CHECK\n" - "-\tstatic const char *badmagic -\t\tKERN_DEBUG \"aurora: Warning: bad aurora port magic number for device %s in %s\\n\";\n" - "-\tstatic const char *badinfo -\t\tKERN_DEBUG \"aurora: Warning: null aurora port for device %s in %s\\n\";\n" + "-\tstatic const char *badmagic =\n" + "-\t\tKERN_DEBUG \"aurora: Warning: bad aurora port magic number for device %s in %s\\n\";\n" + "-\tstatic const char *badinfo =\n" + "-\t\tKERN_DEBUG \"aurora: Warning: null aurora port for device %s in %s\\n\";\n" "-\n" "-\tif (!port) {\n" "-\t\tprintk(badinfo, name, routine);\n" @@ -787,7 +788,7 @@ "-\tsbus_writeb(CCR_HARDRESET, &bp->r[chip]->r[CD180_CCR]);\n" "-\tudelay(1);\n" "-\tsti();\n" - "-\tid\02000;\n" + "-\tid=1000;\n" "-\twhile((--id) &&\n" "-\t (sbus_readb(&bp->r[chip]->r[CD180_GSVR])!=0xff))udelay(100);\n" "-\tif(!id) {\n" @@ -843,7 +844,7 @@ "-{\n" "-int i;\n" "-for(i=0;i<TYPE_1_IRQS;i++)\n" - "-\tif (type_1_irq[i]=irq) return 1;\n" + "-\tif (type_1_irq[i]==irq) return 1;\n" "-return 0;\n" "-}\n" "-\n" @@ -867,8 +868,8 @@ "-\t\t\t\tprintk(KERN_INFO \"aurora: sio16 at %p\\n\",sdev);\n" "-#endif\n" "-\t\t\t\tif((sdev->reg_addrs[0].reg_size!=1) &&\n" - "-\t\t\t\t (sdev->reg_addrs[1].reg_size!\0228) &&\n" - "-\t\t\t\t (sdev->reg_addrs[2].reg_size!\0228) &&\n" + "-\t\t\t\t (sdev->reg_addrs[1].reg_size!=128) &&\n" + "-\t\t\t\t (sdev->reg_addrs[2].reg_size!=128) &&\n" "-\t\t\t\t (sdev->reg_addrs[3].reg_size!=4)) {\n" "-\t\t\t\t \tprintk(KERN_ERR \"aurora%d: registers' sizes \"\n" "-\t\t\t\t\t \"do not match.\\n\", bn);\n" @@ -879,7 +880,7 @@ "-\t\t\t\t\tsbus_ioremap(&sdev->resource[0], 0,\n" "-\t\t\t\t\t\t sdev->reg_addrs[0].reg_size,\n" "-\t\t\t\t\t\t \"sio16\");\n" - "-\t\t\t\tif (bp->r0 = NULL) {\n" + "-\t\t\t\tif (bp->r0 == NULL) {\n" "-\t\t\t\t\tprintk(KERN_ERR \"aurora%d: can't map \"\n" "-\t\t\t\t\t \"reg_addrs[0]\\n\", bn);\n" "-\t\t\t\t\tbreak;\n" @@ -891,7 +892,7 @@ "-\t\t\t\t\tsbus_ioremap(&sdev->resource[1], 0,\n" "-\t\t\t\t\t\t sdev->reg_addrs[1].reg_size,\n" "-\t\t\t\t\t\t \"sio16\");\n" - "-\t\t\t\tif (bp->r[0] = NULL) {\n" + "-\t\t\t\tif (bp->r[0] == NULL) {\n" "-\t\t\t\t\tprintk(KERN_ERR \"aurora%d: can't map \"\n" "-\t\t\t\t\t \"reg_addrs[1]\\n\", bn);\n" "-\t\t\t\t\tbreak;\n" @@ -903,7 +904,7 @@ "-\t\t\t\t\tsbus_ioremap(&sdev->resource[2], 0,\n" "-\t\t\t\t\t\t sdev->reg_addrs[2].reg_size,\n" "-\t\t\t\t\t\t \"sio16\");\n" - "-\t\t\t\tif (bp->r[1] = NULL) {\n" + "-\t\t\t\tif (bp->r[1] == NULL) {\n" "-\t\t\t\t\tprintk(KERN_ERR \"aurora%d: can't map \"\n" "-\t\t\t\t\t \"reg_addrs[2]\\n\", bn);\n" "-\t\t\t\t\tbreak;\n" @@ -915,7 +916,7 @@ "-\t\t\t\t\tsbus_ioremap(&sdev->resource[3], 0,\n" "-\t\t\t\t\t\t sdev->reg_addrs[3].reg_size,\n" "-\t\t\t\t\t\t \"sio16\");\n" - "-\t\t\t\tif (bp->r3 = NULL) {\n" + "-\t\t\t\tif (bp->r3 == NULL) {\n" "-\t\t\t\t\tprintk(KERN_ERR \"aurora%d: can't map \"\n" "-\t\t\t\t\t \"reg_addrs[3]\\n\", bn);\n" "-\t\t\t\t\tbreak;\n" @@ -950,7 +951,7 @@ "-\t\t\t\t\tbp->flags=0xff;\n" "-\t\t\t\t\t}\n" "-\t\t\t\t}\n" - "-\t\t\t\tif(bp->flags=0xff)break;\n" + "-\t\t\t\tif(bp->flags==0xff)break;\n" "-\t\t\t\tprintk(KERN_INFO \"aurora%d: irq %d\\n\",bn,bp->irq&0x0f);\n" "-\t\t\t\tbuf[0]=0;\n" "-\t\t\t\tgrrr=prom_getproperty(sdev->prom_node,\"dtr_rts\",buf,sizeof(buf));\n" @@ -958,23 +959,23 @@ "-\t\t\t\t\tprintk(KERN_INFO \"aurora%d: Swapped DTR and RTS\\n\",bn);\n" "-\t\t\t\t\tbp->DTR=MSVR_RTS;\n" "-\t\t\t\t\tbp->RTS=MSVR_DTR;\n" - "-\t\t\t\t\tbp->MSVDTR\303\215180_MSVRTS;\n" - "-\t\t\t\t\tbp->MSVRTS\303\215180_MSVDTR;\n" + "-\t\t\t\t\tbp->MSVDTR=CD180_MSVRTS;\n" + "-\t\t\t\t\tbp->MSVRTS=CD180_MSVDTR;\n" "-\t\t\t\t\tbp->flags|=AURORA_BOARD_DTR_FLOW_OK;\n" "-\t\t\t\t\t}else{\n" "-\t\t\t\t\t#ifdef AURORA_FORCE_DTR_FLOW\n" "-\t\t\t\t\tprintk(KERN_INFO \"aurora%d: Forcing swapped DTR-RTS\\n\",bn);\n" "-\t\t\t\t\tbp->DTR=MSVR_RTS;\n" "-\t\t\t\t\tbp->RTS=MSVR_DTR;\n" - "-\t\t\t\t\tbp->MSVDTR\303\215180_MSVRTS;\n" - "-\t\t\t\t\tbp->MSVRTS\303\215180_MSVDTR;\n" + "-\t\t\t\t\tbp->MSVDTR=CD180_MSVRTS;\n" + "-\t\t\t\t\tbp->MSVRTS=CD180_MSVDTR;\n" "-\t\t\t\t\tbp->flags|=AURORA_BOARD_DTR_FLOW_OK;\n" "-\t\t\t\t\t#else\n" "-\t\t\t\t\tprintk(KERN_INFO \"aurora%d: Normal DTR and RTS\\n\",bn);\n" "-\t\t\t\t\tbp->DTR=MSVR_DTR;\n" "-\t\t\t\t\tbp->RTS=MSVR_RTS;\n" - "-\t\t\t\t\tbp->MSVDTR\303\215180_MSVDTR;\n" - "-\t\t\t\t\tbp->MSVRTS\303\215180_MSVRTS;\n" + "-\t\t\t\t\tbp->MSVDTR=CD180_MSVDTR;\n" + "-\t\t\t\t\tbp->MSVRTS=CD180_MSVRTS;\n" "-\t\t\t\t\t#endif\n" "-\t\t\t\t}\n" "-\t\t\t\tbp->oscfreq=prom_getint(sdev->prom_node,\"clk\")*100;\n" @@ -1320,13 +1321,13 @@ "-#ifdef AURORA_INT_DEBUG\n" "-\t\t\tprintk(\"R-ACK %02x\\n\", ack);\n" "-#endif\n" - "-\t\t\tif ((ack >> 5) = board_No(bp)) {\n" + "-\t\t\tif ((ack >> 5) == board_No(bp)) {\n" "-\t\t\t\tif ((chip=((ack>>3)&3)-1) < AURORA_NCD180) {\n" - "-\t\t\t\t\tif ((ack&GSVR_ITMASK)=GSVR_IT_RGD) {\n" + "-\t\t\t\t\tif ((ack&GSVR_ITMASK)==GSVR_IT_RGD) {\n" "-\t\t\t\t\t\taurora_receive(bp,chip);\n" "-\t\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" - "-\t\t\t\t\t} else if ((ack & GSVR_ITMASK) = GSVR_IT_REXC) {\n" + "-\t\t\t\t\t} else if ((ack & GSVR_ITMASK) == GSVR_IT_REXC) {\n" "-\t\t\t\t\t\taurora_receive_exc(bp,chip);\n" "-\t\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" @@ -1338,9 +1339,9 @@ "-#ifdef AURORA_INT_DEBUG\n" "-\t\t\tprintk(\"T-ACK %02x\\n\", ack);\n" "-#endif\n" - "-\t\t\tif ((ack >> 5) = board_No(bp)) {\n" + "-\t\t\tif ((ack >> 5) == board_No(bp)) {\n" "-\t\t\t\tif ((chip=((ack>>3)&3)-1) < AURORA_NCD180) {\n" - "-\t\t\t\t\tif ((ack&GSVR_ITMASK)=GSVR_IT_TX) {\n" + "-\t\t\t\t\tif ((ack&GSVR_ITMASK)==GSVR_IT_TX) {\n" "-\t\t\t\t\t\taurora_transmit(bp,chip);\n" "-\t\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" @@ -1352,9 +1353,9 @@ "-#ifdef AURORA_INT_DEBUG\n" "-\t\t\tprintk(\"M-ACK %02x\\n\", ack);\n" "-#endif\n" - "-\t\t\tif ((ack >> 5) = board_No(bp)) {\n" + "-\t\t\tif ((ack >> 5) == board_No(bp)) {\n" "-\t\t\t\tif ((chip = ((ack>>3)&3)-1) < AURORA_NCD180) {\n" - "-\t\t\t\t\tif ((ack&GSVR_ITMASK)=GSVR_IT_MDM) {\n" + "-\t\t\t\t\tif ((ack&GSVR_ITMASK)==GSVR_IT_MDM) {\n" "-\t\t\t\t\t\taurora_check_modem(bp,chip);\n" "-\t\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" @@ -1373,22 +1374,22 @@ "-#ifdef AURORA_INT_DEBUG\n" "-\t\tprintk(\"ACK: %02x\\n\",ack);\n" "-#endif\n" - "-\t\tif ((ack>>5)=board_No(bp)) {\n" + "-\t\tif ((ack>>5)==board_No(bp)) {\n" "-\t\t\tif ((chip=((ack>>3)&3)-1) < AURORA_NCD180) {\n" "-\t\t\t\tack&=GSVR_ITMASK;\n" - "-\t\t\t\tif (ack=GSVR_IT_RGD) {\n" + "-\t\t\t\tif (ack==GSVR_IT_RGD) {\n" "-\t\t\t\t\taurora_receive(bp,chip);\n" "-\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" - "-\t\t\t\t} else if (ack=GSVR_IT_REXC) {\n" + "-\t\t\t\t} else if (ack==GSVR_IT_REXC) {\n" "-\t\t\t\t\taurora_receive_exc(bp,chip);\n" "-\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" - "-\t\t\t\t} else if (ack=GSVR_IT_TX) {\n" + "-\t\t\t\t} else if (ack==GSVR_IT_TX) {\n" "-\t\t\t\t\taurora_transmit(bp,chip);\n" "-\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" - "-\t\t\t\t} else if (ack=GSVR_IT_MDM) {\n" + "-\t\t\t\t} else if (ack==GSVR_IT_MDM) {\n" "-\t\t\t\t\taurora_check_modem(bp,chip);\n" "-\t\t\t\t\tsbus_writeb(0,\n" "-\t\t\t\t\t\t &bp->r[chip]->r[CD180_EOSRR]);\n" @@ -1409,12 +1410,12 @@ "-\n" "-\t\t\tif (status & SRSR_REXT) {\n" "-\t\t\t\tack = sbus_readb(&bp->r3->r[bp->ACK_RINT]);\n" - "-\t\t\t\tif (ack = (chip_id | GSVR_IT_RGD)) {\n" + "-\t\t\t\tif (ack == (chip_id | GSVR_IT_RGD)) {\n" "-#ifdef AURORA_INTMSG\n" "-\t\t\t\t\tprintk(\"RX ACK\\n\");\n" "-#endif\n" "-\t\t\t\t\taurora_receive(bp,chip);\n" - "-\t\t\t\t} else if (ack = (chip_id | GSVR_IT_REXC)) {\n" + "-\t\t\t\t} else if (ack == (chip_id | GSVR_IT_REXC)) {\n" "-#ifdef AURORA_INTMSG\n" "-\t\t\t\t\tprintk(\"RXC ACK\\n\");\n" "-#endif\n" @@ -1427,7 +1428,7 @@ "-\t\t\t\t}\n" "-\t\t\t} else if (status & SRSR_TEXT) {\n" "-\t\t\t\tack = sbus_readb(&bp->r3->r[bp->ACK_TINT]);\n" - "-\t\t\t\tif (ack = (chip_id | GSVR_IT_TX)){\n" + "-\t\t\t\tif (ack == (chip_id | GSVR_IT_TX)){\n" "-#ifdef AURORA_INTMSG\n" "-\t\t\t\t\tprintk(\"TX ACK\\n\");\n" "-#endif\n" @@ -1440,7 +1441,7 @@ "-\t\t\t\t}\n" "-\t\t\t} else if (status & SRSR_MEXT) {\n" "-\t\t\t\tack = sbus_readb(&bp->r3->r[bp->ACK_MINT]);\n" - "-\t\t\t\tif (ack = (chip_id | GSVR_IT_MDM)){\n" + "-\t\t\t\tif (ack == (chip_id | GSVR_IT_MDM)){\n" "-#ifdef AURORA_INTMSG\n" "-\t\t\t\t\tprintk(\"MDM ACK\\n\");\n" "-#endif\n" @@ -1530,7 +1531,7 @@ "-\n" "-\tif (aurora_init_CD180(bp,0))error=1;error=0;\n" "-\tif (aurora_init_CD180(bp,1))error++;\n" - "-\tif (error = AURORA_NCD180) {\n" + "-\tif (error == AURORA_NCD180) {\n" "-\t\tprintk(KERN_ERR \"Both chips failed initialisation.\\n\");\n" "-\t\treturn -EIO;\n" "-\t}\n" @@ -1791,7 +1792,7 @@ "-\t\tclear_bit(TTY_IO_ERROR, &port->tty->flags);\n" "-\t\t\n" "-#ifdef MODULE\n" - "-\tif ((port->count = 1) && ((++bp->count) = 1))\n" + "-\tif ((port->count == 1) && ((++bp->count) == 1))\n" "-\t\t\tbp->flags |= AURORA_BOARD_ACTIVE;\n" "-#endif\n" "-\n" @@ -2057,7 +2058,7 @@ "-\t}\n" "-\t\n" "-\tbp = port_Board(port);\n" - "-\tif ((tty->count = 1) && (port->count != 1)) {\n" + "-\tif ((tty->count == 1) && (port->count != 1)) {\n" "-\t\tprintk(KERN_DEBUG \"aurora%d: aurora_close: bad port count; \"\n" "-\t\t \"tty->count is 1, port count is %d\\n\",\n" "-\t\t board_No(bp), port->count);\n" @@ -2439,12 +2440,14 @@ "-\t\treturn -EINVAL;\n" "-#endif\t\n" "-\t\n" - "-\tchange_speed = ((port->flags & ASYNC_SPD_MASK) !-\t\t\t(tmp.flags & ASYNC_SPD_MASK));\n" + "-\tchange_speed = ((port->flags & ASYNC_SPD_MASK) !=\n" + "-\t\t\t(tmp.flags & ASYNC_SPD_MASK));\n" "-\t\n" "-\tif (!capable(CAP_SYS_ADMIN)) {\n" "-\t\tif ((tmp.close_delay != port->close_delay) ||\n" "-\t\t (tmp.closing_wait != port->closing_wait) ||\n" - "-\t\t ((tmp.flags & ~ASYNC_USR_MASK) !-\t\t (port->flags & ~ASYNC_USR_MASK))) \n" + "-\t\t ((tmp.flags & ~ASYNC_USR_MASK) !=\n" + "-\t\t (port->flags & ~ASYNC_USR_MASK))) \n" "-\t\t\treturn -EPERM;\n" "-\t\tport->flags = ((port->flags & ~ASYNC_USR_MASK) |\n" "-\t\t\t (tmp.flags & ASYNC_USR_MASK));\n" @@ -2528,7 +2531,8 @@ "-\tcase TIOCSSOFTCAR:\n" "-\t\tif (get_user(arg,(unsigned long *)arg))\n" "-\t\t\treturn -EFAULT;\n" - "-\t\ttty->termios->c_cflag -\t\t\t((tty->termios->c_cflag & ~CLOCAL) |\n" + "-\t\ttty->termios->c_cflag =\n" + "-\t\t\t((tty->termios->c_cflag & ~CLOCAL) |\n" "-\t\t\t (arg ? CLOCAL : 0));\n" "-\t\treturn 0;\n" "-\tcase TIOCGSERIAL:\t\n" @@ -2734,8 +2738,8 @@ "-\tif ((aurora_paranoia_check(port, tty->name, \"aurora_set_termios\"))\n" "-\t\treturn;\n" "-\t\n" - "-\tif (tty->termios->c_cflag = old_termios->c_cflag &&\n" - "-\t tty->termios->c_iflag = old_termios->c_iflag)\n" + "-\tif (tty->termios->c_cflag == old_termios->c_cflag &&\n" + "-\t tty->termios->c_iflag == old_termios->c_iflag)\n" "-\t\treturn;\n" "-\n" "-\tsave_flags(flags); cli();\n" @@ -2766,7 +2770,7 @@ "-\tprintk(\"do_softint: start\\n\");\n" "-#endif\n" "-\ttty = port->tty;\n" - "-\tif (tty = NULL)\n" + "-\tif (tty == NULL)\n" "-\t\treturn;\n" "-\n" "-\tif (test_and_clear_bit(RS_EVENT_WRITE_WAKEUP, &port->event)) {\n" @@ -2806,7 +2810,7 @@ "-\tprintk(\"aurora_init_drivers: start\\n\");\n" "-#endif\n" "-\ttmp_buf = (unsigned char *) get_zeroed_page(GFP_KERNEL);\n" - "-\tif (tmp_buf = NULL) {\n" + "-\tif (tmp_buf == NULL) {\n" "-\t\tprintk(KERN_ERR \"aurora: Couldn't get free page.\\n\");\n" "-\t\treturn 1;\n" "-\t}\n" @@ -2823,7 +2827,8 @@ "-\taurora_driver->type = TTY_DRIVER_TYPE_SERIAL;\n" "-\taurora_driver->subtype = SERIAL_TYPE_NORMAL;\n" "-\taurora_driver->init_termios = tty_std_termios;\n" - "-\taurora_driver->init_termios.c_cflag -\t\tB9600 | CS8 | CREAD | HUPCL | CLOCAL;\n" + "-\taurora_driver->init_termios.c_cflag =\n" + "-\t\tB9600 | CS8 | CREAD | HUPCL | CLOCAL;\n" "-\taurora_driver->flags = TTY_DRIVER_REAL_RAW;\n" "-\ttty_set_operations(aurora_driver, &aurora_ops);\n" "-\terror = tty_register_driver(aurora_driver);\n" @@ -2952,4 +2957,4 @@ "-module_exit(aurora_cleanup);\n" "-MODULE_LICENSE(\"GPL\");" -8c502032688c794e5bb74d9e25a04fc145898444c0503ace49162775c0726737 +8bb0035d015c81ea7b023e6264cc45cb203bf63d97cc84a40e399d108179b848
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.