From: H Hartley Sweeten Date: Mon, 8 Apr 2013 21:30:06 +0000 (-0700) Subject: staging: comedi: acl7225b: remove local var in acl7225b_attach() X-Git-Tag: upstream/snapshot3+hdmi~5290^2~220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db6de3675375b6738fa13bb92118ec56efcb7ac3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: comedi: acl7225b: remove local var in acl7225b_attach() 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 Cc: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/acl7225b.c b/drivers/staging/comedi/drivers/acl7225b.c index 8d9e1ae..adbe580 100644 --- a/drivers/staging/comedi/drivers/acl7225b.c +++ b/drivers/staging/comedi/drivers/acl7225b.c @@ -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;