diff options
author | Colin Ian King <colin.king@canonical.com> | 2019-07-03 09:14:34 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-07-03 18:35:04 +0200 |
commit | 5b2736ce361989882636d4b105d1146ca3382f47 (patch) | |
tree | 008bedd167b762b4bb673c6d77bd3a77dd2790e2 /drivers/staging | |
parent | 14c77a18375db381426d3a0e6e7aaf87af9a8143 (diff) | |
download | linux-stable-5b2736ce361989882636d4b105d1146ca3382f47.tar.gz linux-stable-5b2736ce361989882636d4b105d1146ca3382f47.tar.bz2 linux-stable-5b2736ce361989882636d4b105d1146ca3382f47.zip |
staging: rtl8723bs: hal: remove redundant assignment to packetType
Local variable packetType is being assigned a value that is never
read just before a return statement. The assignment is redundant
and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Link: https://lore.kernel.org/r/20190703081434.17489-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtl8723bs/hal/hal_btcoex.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/hal/hal_btcoex.c b/drivers/staging/rtl8723bs/hal/hal_btcoex.c index 9fcf387916c4..5257287b4f4d 100644 --- a/drivers/staging/rtl8723bs/hal/hal_btcoex.c +++ b/drivers/staging/rtl8723bs/hal/hal_btcoex.c @@ -1194,7 +1194,6 @@ void EXhalbtcoutsrc_SpecialPacketNotify(PBTC_COEXIST pBtCoexist, u8 pktType) } else if (PACKET_ARP == pktType) { packetType = BTC_PACKET_ARP; } else { - packetType = BTC_PACKET_UNKNOWN; return; } |