staging: comedi: ni_pcimio: remove unused variable 'serial_number'
authorKarthik Nayak <karthik.188@gmail.com>
Thu, 9 Feb 2017 12:06:50 +0000 (17:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Feb 2017 17:08:30 +0000 (09:08 -0800)
commit2c9c5f5a7310b62af66d7ecf6486371626b9ebf0
treea97a05904db7e46b51ced050ad7eb5a7617461cf
parente1ea433d6ea42f0809a3214ca04053ad776ffcb0
staging: comedi: ni_pcimio: remove unused variable 'serial_number'

The struct 'ni_private' holds the variable 'serial_number' which post
assignment is never used. Remove the variable and code pertaining to
obtaining its value.

As a side note, this also fixes the following sparse error:
drivers/staging/comedi/drivers//ni_pcimio.c:1229:32: warning: incorrect type in assignment (different base types)
drivers/staging/comedi/drivers//ni_pcimio.c:1229:32:    expected restricted __be32 [usertype] serial_number
drivers/staging/comedi/drivers//ni_pcimio.c:1229:32:    got unsigned int

Signed-off-by: Karthik Nayak <Karthik.188@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/ni_pcimio.c
drivers/staging/comedi/drivers/ni_stc.h