From: H Hartley Sweeten Date: Thu, 4 Sep 2014 17:39:36 +0000 (-0700) Subject: staging: comedi: adl_pci9118: remove unnecessary dev->board_name initialization X-Git-Tag: v3.18-rc1~130^2~693 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=f34afce444ca2e3a65264126bec2982358a25a1f;p=karo-tx-linux.git staging: comedi: adl_pci9118: remove unnecessary dev->board_name initialization 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 Reviewed-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/drivers/adl_pci9118.c index 6471f2c6cda0..c582301a2c9c 100644 --- a/drivers/staging/comedi/drivers/adl_pci9118.c +++ b/drivers/staging/comedi/drivers/adl_pci9118.c @@ -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;