net: wireless: wext_compat.c: Remove redundant assignment to ps
Subsystems (3)
PATCH 1/1 net: wireless: wext_compat.c: Remove redundant assignment to ps
Variable 'ps' is set to wdev->ps but this value is never read as it is overwritten with a new value later on, hence it is a redundant assignment and can be removed.
Cleans up the following clang-analyzer warning:
net/wireless/wext-compat.c:1170:7: warning: Value stored to 'ps' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- net/wireless/wext-compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/wireless/wext-compat.c +1 -1
@@ -1167,7 +1167,7 @@ static int cfg80211_wext_siwpower(struct net_device *dev, {struct wireless_dev *wdev = dev->ieee80211_ptr;struct cfg80211_registered_device *rdev =wiphy_to_rdev (wdev->wiphy); -bool ps = wdev->ps; +bool ps;int timeout = wdev->ps_timeout;int err;
Signature · 1 line
1.8.3.1