drivers/dma/amba-pl08x.c: adjust double test
authorJulia Lawall <Julia.Lawall@lip6.fr>
Thu, 12 Jan 2012 21:49:29 +0000 (22:49 +0100)
committerVinod Koul <vinod.koul@linux.intel.com>
Tue, 31 Jan 2012 03:25:08 +0000 (08:55 +0530)
commit880db3ff17a973bc0e9847299d1fd9cdf4568ee1
treec27541db3d18b22877d4c7427f6abb23f7a811df
parent7bec78e0a82418021dc2e63dea4d2b749953086d
drivers/dma/amba-pl08x.c: 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: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/amba-pl08x.c