]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211-hwsim: remove unnecessary hwname check
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Nov 2014 17:51:55 +0000 (18:51 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 19 Nov 2014 17:51:55 +0000 (18:51 +0100)
commit204c26df7e619ff85c9a962949732aba426f6ca1
treeb5f0e38f20f94623a145969c4689e68117dcca92
parentfb3a7d2b2074100f3a28db60a4a8dd6325ecf234
mac80211-hwsim: remove unnecessary hwname check

The hwname will always be set if idx is negative (as it's
a u32 read into an s64 it can't overflow either) so we can
remove the unnecessary check for hwname being non-NULL.

This was reported by smatch.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/mac80211_hwsim.c