]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: remove redundant initializations of 'mos_parport'
authorColin Ian King <colin.king@canonical.com>
Wed, 17 Jan 2018 11:54:27 +0000 (11:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 14:34:37 +0000 (15:34 +0100)
commite84993f79e9c9ac27123ff577dd8cc9912c68bfc
tree139f95825fbf0cbdae1718a307383aefeb07c29d
parent2fa9e164101c4c542cbab4c88eb51df111ef550f
USB: serial: remove redundant initializations of 'mos_parport'

The pointer mos_parport is being initialized to pp->private_data and
then the assignment is duplicated after a spin lock.  Remove the
initialization as it occurs before the spin lock and it is a redundant
assignment.

Cleans up clang warnings:
drivers/usb/serial/mos7720.c:521:26: warning: Value stored to
'mos_parport' during its initialization is never read
drivers/usb/serial/mos7720.c:557:26: warning: Value stored to
'mos_parport' during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mos7720.c