]> git.baikalelectronics.ru Git - kernel.git/commit
net/wireless: Remove double test
authorJulia Lawall <julia@diku.dk>
Sat, 28 Aug 2010 15:41:06 +0000 (17:41 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 31 Aug 2010 18:20:40 +0000 (14:20 -0400)
commitfa9199df91c4df003e6fada426344cb51d8196a7
tree9f26e90bfa6d1d905dbdab89b80c432f4e2e6a76
parent99b99a62b6655ebeda3c578876f5cc781ebb2f5d
net/wireless: Remove double test

The same expression is tested twice and the result is the same each 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: John W. Linville <linville@tuxdriver.com>
net/wireless/wext-core.c