staging: comedi: s626: remove unnecessary variable initialization
authorChase Southwood <chase.southwood@gmail.com>
Mon, 18 Aug 2014 03:43:44 +0000 (22:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:16:19 +0000 (13:16 -0700)
We initialize 'irqbit' to 0, only to properly set it immediately
afterwards.  Just remove the zero-initialization.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Cc: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/s626.c

index 080608a840ac7d02c7ed3481518d12bf2bc823a3..e42720c9b774ab5b0dceacc3cd99a882bd7d4ad0 100644 (file)
@@ -1399,7 +1399,6 @@ static void s626_check_dio_interrupts(struct comedi_device *dev)
        uint8_t group;
 
        for (group = 0; group < S626_DIO_BANKS; group++) {
-               irqbit = 0;
                /* read interrupt type */
                irqbit = s626_debi_read(dev, S626_LP_RDCAPFLG(group));
 
This page took 0.026104 seconds and 5 git commands to generate.