nl80211: trivial: Remove redundant loop
authorDenis Kenzior <denkenz@gmail.com>
Tue, 8 Oct 2019 16:43:50 +0000 (11:43 -0500)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 11 Oct 2019 08:29:53 +0000 (10:29 +0200)
commit2fd351a8772d6eae4800925b17228c9f2d276193
treea8e7917804f87702e98787d2394419b3b54c8876
parent2ce113de31320756b25179f3f4512a522bc45263
nl80211: trivial: Remove redundant loop

cfg80211_assign_cookie already checks & prevents a 0 from being
returned, so the explicit loop is unnecessary.

Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Link: https://lore.kernel.org/r/20191008164350.2836-1-denkenz@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/nl80211.c