rtlwifi: btcoexist: adjust double test
authorHimangi Saraogi <himangi774@gmail.com>
Tue, 12 Aug 2014 19:39:29 +0000 (01:09 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Aug 2014 19:39:23 +0000 (15:39 -0400)
commite5cd6cee46764467e6cb14841ff59cd2e2573502
treebe9cee414c1d9c75f58813d61c3d5e7d5d6ff809
parent9837baa99717c7526e4bae9c68e8728dea4af183
rtlwifi: btcoexist: adjust double test

Rewrite a duplicated test to test the correct value

The Coccinelle semantic patch that finds this problem is:

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

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

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Larry.Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c