Skip to content

Commit

Permalink
staging: comedi: acl7225b: remove local var in acl7225b_attach()
Browse files Browse the repository at this point in the history
The 'iorange' local variable is only used in the request_region()
call. Remove the variable and just use the board->io_range directly.

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 7ffb0a8 commit db6de36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/staging/comedi/drivers/acl7225b.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,11 @@ static int acl7225b_attach(struct comedi_device *dev,
{
const struct acl7225b_boardinfo *board = comedi_board(dev);
struct comedi_subdevice *s;
int iobase, iorange;
int iobase;
int ret;

iobase = it->options[0];
iorange = board->io_range;
if (!request_region(iobase, iorange, dev->board_name))
if (!request_region(iobase, board->io_range, dev->board_name))
return -EIO;
dev->iobase = iobase;
dev->irq = 0;
Expand Down

0 comments on commit db6de36

Please sign in to comment.