remove duplicated comment and fix brace placement in drivers/staging/comedi/drivers/addi-data/hwdrv_acpi3501.c
PATCH 1/1 remove duplicated comment and fix brace placement in drivers/staging/comedi/drivers/addi-data/hwdrv_acpi3501.c
Signed-off-by Marcin Kostrzewa <[email protected]>
--- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c +1 -3
@@ -104,9 +104,7 @@ static int apci3501_write_insn_timer(struct comedi_device *dev,outl (ul_Command1, dev->iobase +APCI3501_TIMER_CTRL_REG ); } -else if (data[1 ] ==0 )/* Stop The Watchdog */ - { -/* Stop The Watchdog */ +else if (data[1 ] ==0 ) {/* Stop The Watchdog */ ul_Command1 =inl (dev->iobase +APCI3501_TIMER_CTRL_REG ); ul_Command1 = ul_Command1 &0xFFFFF9FEUL ;outl (0x0 , dev->iobase +APCI3501_TIMER_CTRL_REG );
Signature · 1 line
1.9.2
The subject should be:
[PATCH] Staging: comedi: addi-data: <short title. clean up else statement>
Quoted 10 lines · Marcin Kostrzewa
Signed-off-by Marcin Kostrzewa <[email protected]>--- drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c +0
-0
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c static int apci3501_write_insn_timer(struct comedi_device *dev, · line 107
Quoted 7 lines
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c +1
-3@@ -104,9 +104,7 @@ static int apci3501_write_insn_timer(struct comedi_device *dev,outl (ul_Command1, dev->iobase +APCI3501_TIMER_CTRL_REG ); } -else if (data[1 ] ==0 )/* Stop The Watchdog */ - { -/* Stop The Watchdog */ +else if (data[1 ] ==0 ) {/* Stop The Watchdog */
While you're at it, could you also move it like this:
} else if (data[1] == 0) { /* Stop The Watchdog */(I wouldn't have asked you to do this, except that you need to resend anyway with a fixed subject line).
regards,
dan carpenter
Quoted 10 lines
drivers/staging/comedi/drivers/addi-data/hwdrv_apci3501.c +0
-0ul_Command1 =inl (dev->iobase +APCI3501_TIMER_CTRL_REG ); ul_Command1 = ul_Command1 &0xFFFFF9FEUL ;outl (0x0 , dev->iobase +APCI3501_TIMER_CTRL_REG );Signature · 6 lines
1.9.2 _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel