]> git.baikalelectronics.ru Git - kernel.git/commit
USB: gadget: amd5536udc.c: Remove double test
authorJulia Lawall <julia@diku.dk>
Sat, 28 Aug 2010 16:48:56 +0000 (18:48 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:21:26 +0000 (10:21 -0700)
commit62fd6f9d8128052f2e46ca3e6a6b734dedb58026
treea7b5a40fc5c141fc7f6f60484592a7aacd1d7a0c
parent5aae5b21feaf8b719bcc24bba5a0fbf6a1918e16
USB: gadget: amd5536udc.c: Remove double test

The same expression is tested twice and the result is the same each time.
Instead test for use_dma_ppb as in the test above.

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/usb/gadget/amd5536udc.c