]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wlan-ng remove redundant conditional
authorTillmann Heidsieck <theidsieck@leenox.de>
Wed, 23 Sep 2015 20:07:54 +0000 (22:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 02:19:27 +0000 (04:19 +0200)
commit4c399d1a8495745fb9a358ade9530d5de1cc8045
treeefab9fa5bc996b5ff9a9c4bcb82ace58a62acd51
parent5614d982d11f1e8dc1a2106a2bcb11a6dd0946ea
staging: wlan-ng remove redundant conditional

We exit the above loop either if curroff >= (HFA384x_PDA_LEN_MAX / 2 - 1)
or if we found the END marker in the element beyond the current one. The
first case is checked for in the preceding if statement, therefore the
second if statement is redundant and can be removed.

Signed-off-by: Tillmann Heidsieck <theidsieck@leenox.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/prism2fw.c