Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 044c2e17 authored by H Hartley Sweeten's avatar H Hartley Sweeten Committed by Greg Kroah-Hartman
Browse files

staging: comedi: aio_aio12_8: cleanup dev->board_name usage



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: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent efe4567c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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");