]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/staging: adjust double test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 12 Jan 2012 21:49:27 +0000 (22:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2012 17:13:55 +0000 (09:13 -0800)
commit6420c720cde7c0cd1d11b75b14429a18ea70698c
treee12f9df94e812f15b83c3e11c0415c9652409f43
parentb55cfbb19e9ed6bb2a31473ace7bb19a7f05116e
drivers/staging: adjust double test

Rewrite a duplicated test to test the correct value

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

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

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

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_rx.c