]> asedeno.scripts.mit.edu Git - linux.git/commit
serial: core: remove redundant assignment to port
authorColin Ian King <colin.king@canonical.com>
Wed, 1 Nov 2017 10:49:23 +0000 (10:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 4 Nov 2017 11:08:53 +0000 (12:08 +0100)
commit9356335faf9f65568dbdb9bba2a07117f69d34c5
treef43b164b3f95c38d51278a21df1f0b02a75c4bd1
parent1be2266392196de82d1cfcc8a68e770cf8f48c60
serial: core: remove redundant assignment to port

The final assignment to port is never read, hence it is redundant
and can be removed. Also move the declaration of port to a more
local scope.  Cleans up clang warning:

drivers/tty/serial/serial_core.c:1498:2: warning: Value stored
to 'port' is never read

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