staging: rtl8193*: Remove double test
commit4498dbcd2d85b67e9f46790bcfee5860d2dd1762
authorJulia Lawall <julia@diku.dk>
Sat, 28 Aug 2010 15:41:00 +0000 (28 17:41 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 31 Aug 2010 22:22:37 +0000 (31 15:22 -0700)
tree3007d7515ef931678114abe946f6fee568a9acf3
parent15300c1df7e8c85cfbd5155a59cd6f767af70daa
staging: rtl8193*: Remove double test

The 1 element of the array is tested twice.  Change the code so that the
remaining 3 element of the array is tested instead of testing the 1 element
a second time.

The sematic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@expression@
expression E;
@@

(
* E
  || ... || E
|
* E
  && ... && E
)
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rtl8192e/ieee80211/ieee80211_rx.c
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c