diff options
author | Colin Ian King <colin.king@canonical.com> | 2018-01-17 11:54:27 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-01-22 15:34:37 +0100 |
commit | f0b4198f0727dd758a6ef34eca938c559b5d5ae5 (patch) | |
tree | 139f95825fbf0cbdae1718a307383aefeb07c29d /tools | |
parent | 11fb37998759c48e4e4c200c974593cbeab25d3e (diff) | |
download | linux-f0b4198f0727dd758a6ef34eca938c559b5d5ae5.tar.gz linux-f0b4198f0727dd758a6ef34eca938c559b5d5ae5.tar.bz2 linux-f0b4198f0727dd758a6ef34eca938c559b5d5ae5.zip |
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>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions