From: Nicolas Kaiser Date: Thu, 7 Oct 2010 22:48:01 +0000 (+0200) Subject: dma/timberdale: simplify conditional X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cb047d4d19fc15791a64d900d483405eae6200d;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git dma/timberdale: simplify conditional Simplify: ((a && b) || (!a && !b)) => (a == b) Signed-off-by: Nicolas Kaiser Acked-by: Jack Stone Signed-off-by: Dan Williams --- diff --git a/drivers/dma/timb_dma.c b/drivers/dma/timb_dma.c index 2ec1ed56f204..3b88a4e7c98a 100644 --- a/drivers/dma/timb_dma.c +++ b/drivers/dma/timb_dma.c @@ -759,7 +759,7 @@ static int __devinit td_probe(struct platform_device *pdev) pdata->channels + i; /* even channels are RX, odd are TX */ - if (((i % 2) && pchan->rx) || (!(i % 2) && !pchan->rx)) { + if ((i % 2) == pchan->rx) { dev_err(&pdev->dev, "Wrong channel configuration\n"); err = -EINVAL; goto err_tasklet_kill;