Commit 9cb047d4 authored by Nicolas Kaiser's avatar Nicolas Kaiser Committed by Dan Williams

dma/timberdale: simplify conditional

Simplify: ((a && b) || (!a && !b)) => (a == b)
Signed-off-by: default avatarNicolas Kaiser <nikai@nikai.net>
Acked-by: default avatarJack Stone <jwjstone@fastmail.fm>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 5fc6d897
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment