staging: comedi: remove duplicate pointer assignments in attach functions
authorChristian Engelmayer <cengelma@gmx.at>
Sat, 26 Apr 2014 14:04:29 +0000 (16:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 May 2014 23:50:42 +0000 (19:50 -0400)
commit1d57261c96cf37949b87d9d239afb3734846d78e
treee80b36bdcc6907fe769be2f88325adcf9bfd0195
parentc1bc97f8f498a2bfab63ceef761fb0e88ef7c065
staging: comedi: remove duplicate pointer assignments in attach functions

Some board pointer are assigned twice via comedi_board() in the comedi low
level driver attach functions. Remove the duplicate assignment from the
variable definition where the pointer is not used anyway until assigned later
in the function when dev->board_ptr, that comedi_board() relies on, is setup
correctly.

Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/das1800.c
drivers/staging/comedi/drivers/das800.c
drivers/staging/comedi/drivers/dt2801.c
drivers/staging/comedi/drivers/ni_at_a2150.c