aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJulia Lawall <Julia.Lawall@lip6.fr>2012-01-12 16:49:29 -0500
committerVinod Koul <vinod.koul@linux.intel.com>2012-01-30 22:25:08 -0500
commit880db3ff17a973bc0e9847299d1fd9cdf4568ee1 (patch)
treec27541db3d18b22877d4c7427f6abb23f7a811df /drivers
parent7bec78e0a82418021dc2e63dea4d2b749953086d (diff)
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/dma/amba-pl08x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index 8a281584458b..840c6c0dc533 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -649,7 +649,7 @@ static int pl08x_fill_llis_for_desc(struct pl08x_driver_data *pl08x,
649 } 649 }
650 650
651 if ((bd.srcbus.addr % bd.srcbus.buswidth) || 651 if ((bd.srcbus.addr % bd.srcbus.buswidth) ||
652 (bd.srcbus.addr % bd.srcbus.buswidth)) { 652 (bd.dstbus.addr % bd.dstbus.buswidth)) {
653 dev_err(&pl08x->adev->dev, 653 dev_err(&pl08x->adev->dev,
654 "%s src & dst address must be aligned to src" 654 "%s src & dst address must be aligned to src"
655 " & dst width if peripheral is flow controller", 655 " & dst width if peripheral is flow controller",