]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: comedi: adl_pci9118: remove unnecessary dev->board_name initialization
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Thu, 4 Sep 2014 17:39:36 +0000 (10:39 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Sep 2014 20:54:06 +0000 (13:54 -0700)
The (*auto_attach) in this driver will set the dev->board_name and the comedi core
will set it when using the legacy (*attach). Remove the unnecessary initialization
in pci9118_common_attach().

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/adl_pci9118.c

index 6471f2c6cda035b82ee45db924497a09686e2c4c..c582301a2c9cb10deb220b64d9b335c97347b6c4 100644 (file)
@@ -1773,7 +1773,6 @@ static int pci9118_common_attach(struct comedi_device *dev, int disable_irq,
        int ret, pages, i;
        u16 u16w;
 
-       dev->board_name = this_board->name;
        ret = comedi_pci_enable(dev);
        if (ret)
                return ret;