OSDN Git Service

mwifiex: kill useless list_empty checks
authorDouglas Anderson <dianders@chromium.org>
Tue, 3 Oct 2017 15:19:43 +0000 (20:49 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 13 Oct 2017 09:38:02 +0000 (12:38 +0300)
commit40351051d022762d95142a5a9e37220dbbce39f5
treee23d0f60589ac86124f45a578547738f7a3e971d
parent0f0a0af826260a267d11a66e4b13543784bc9c56
mwifiex: kill useless list_empty checks

There's absolutely no reason to check to see if a list is empty
before iterating through it.  It's just like writing code like
this:

if (count != 0) {
  for (i = 0; i < count; i++) {
     ...
  }
}

The loop will already be avoided if "count == 0" so there was no
reason to check.

Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Ganapathi Bhat <gbhat@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/11n.c
drivers/net/wireless/marvell/mwifiex/11n_rxreorder.c
drivers/net/wireless/marvell/mwifiex/init.c
drivers/net/wireless/marvell/mwifiex/tdls.c