From: H Hartley Sweeten Date: Tue, 9 Apr 2013 23:27:44 +0000 (-0700) Subject: staging: comedi: pcmuio: cleanup dev->board_name usage X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=34734c588dc41d4c2056381305f3dca1bfe86889;p=linux-beck.git staging: comedi: pcmuio: 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: H Hartley Sweeten Cc: Ian Abbott Cc: Greg Kroah-Hartman Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/comedi/drivers/pcmuio.c b/drivers/staging/comedi/drivers/pcmuio.c index 433270ceda4f..745f7b908767 100644 --- a/drivers/staging/comedi/drivers/pcmuio.c +++ b/drivers/staging/comedi/drivers/pcmuio.c @@ -820,8 +820,6 @@ static int pcmuio_attach(struct comedi_device *dev, struct comedi_devconfig *it) return -EIO; } - dev->board_name = board->name; - devpriv = kzalloc(sizeof(*devpriv), GFP_KERNEL); if (!devpriv) return -ENOMEM;