diff options
author | H Hartley Sweeten <hsweeten@visionengravers.com> | 2013-04-09 16:27:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-11 12:47:52 -0700 |
commit | 34734c588dc41d4c2056381305f3dca1bfe86889 (patch) | |
tree | f8c3a4af1b030b0a01e5788a969565d6a26eb0ba /drivers | |
parent | 1bdf7c2edfd2aa00f2a016fe997eb3297a02e1e5 (diff) |
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 <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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/comedi/drivers/pcmuio.c | 2 |
1 files changed, 0 insertions, 2 deletions
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; |