usb: typec: mux: remove redundant check on variable match
authorColin Ian King <colin.king@canonical.com>
Tue, 19 Feb 2019 13:43:33 +0000 (13:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 10:29:01 +0000 (11:29 +0100)
commiteb76b37aaf7e6bdd6638bf5b2ef29688645e03b8
treea5cb5f0fb0660230cfdd7ebf2d17facf99eda733
parent98bba546e82d7785b9560c6b141b73ac8d3d820f
usb: typec: mux: remove redundant check on variable match

All the code paths that lead to the return statement are where
match is always true, hence the check to see if it is true is
redundant and can be removed.

Detected by CoverityScan, CID#14769672 ("Logically dead code")

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux.c