From: Colin Ian King Date: Wed, 3 Jul 2019 08:14:34 +0000 (+0100) Subject: staging: rtl8723bs: hal: remove redundant assignment to packetType X-Git-Tag: v5.3-rc1~126^2~3 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=5b2736ce361989882636d4b105d1146ca3382f47;p=linux.git 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 Link: https://lore.kernel.org/r/20190703081434.17489-1-colin.king@canonical.com Signed-off-by: Greg Kroah-Hartman --- 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; }