Skip to content

Commit

Permalink
staging: comedi: aio_aio12_8: cleanup dev->board_name usage
Browse files Browse the repository at this point in the history
This legacy driver does no additional probing so the dev->board_name
will already be properly initialized by the comedi core before calling
the (*attach) function.

Remove the unnecessary initialization of dev->board_name.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
H Hartley Sweeten authored and Greg Kroah-Hartman committed Apr 11, 2013
1 parent efe4567 commit 044c2e1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/comedi/drivers/aio_aio12_8.c
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,6 @@ static int aio_aio12_8_attach(struct comedi_device *dev,
int iobase;
int ret;

dev->board_name = board->name;

iobase = it->options[0];
if (!request_region(iobase, 32, dev->board_name)) {
printk(KERN_ERR "I/O port conflict");
Expand Down

0 comments on commit 044c2e1

Please sign in to comment.