Skip to content

Commit

Permalink
staging: comedi: acl7225b: dev->irq is already '0'
Browse files Browse the repository at this point in the history
This driver does not use interrupts and the dev->irq variable is
already set to '0' when then (*attach) function is called. Setting
it in the driver is unnecessary.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 9, 2013
1 parent db6de36 commit b329827
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/staging/comedi/drivers/acl7225b.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ static int acl7225b_attach(struct comedi_device *dev,
if (!request_region(iobase, board->io_range, dev->board_name))
return -EIO;
dev->iobase = iobase;
dev->irq = 0;

ret = comedi_alloc_subdevices(dev, 3);
if (ret)
Expand Down

0 comments on commit b329827

Please sign in to comment.