]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
wifi: mac80211: clean up assignments to pointer cache.
authorColin Ian King <colin.i.king@intel.com>
Thu, 15 Feb 2024 23:21:51 +0000 (23:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 May 2024 14:32:33 +0000 (16:32 +0200)
commit1ba4d2adf1aafb3917d4cdec314757e96cbca634
treef81efab89b325d6d6f243348f62fca4cb43cb9ec
parent80ea4ee9f99c28d150ab376437e66c04d4769863
wifi: mac80211: clean up assignments to pointer cache.

[ Upstream commit ba4b1fa3128b2fbf14e167230315cbd9074b629b ]

The assignment to pointer cache in function mesh_fast_tx_gc can
be made at the declaration time rather than a later assignment.
There are also 3 functions where pointer cache is being initialized
at declaration time and later re-assigned again with the same
value, these are redundant and can be removed.

Cleans up code and three clang scan build warnings:
warning: Value stored to 'cache' during its initialization is never
read [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://msgid.link/20240215232151.2075483-1-colin.i.king@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Stable-dep-of: 8c75cdcdf869 ("wifi: mac80211: split mesh fast tx cache into local/proxied/forwarded")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh_pathtbl.c