diff options
author | Nicolas Kaiser <nikai@nikai.net> | 2010-10-07 18:48:01 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2010-10-19 18:20:11 -0400 |
commit | 9cb047d4d19fc15791a64d900d483405eae6200d (patch) | |
tree | 6a3655d0c4ddfe76c8f0bbdebe070d40238d49dc /drivers/dma/timb_dma.c | |
parent | 5fc6d897fde352bad5db5767e7260741a8cdd9e9 (diff) |
dma/timberdale: simplify conditional
Simplify: ((a && b) || (!a && !b)) => (a == b)
Signed-off-by: Nicolas Kaiser <nikai@nikai.net>
Acked-by: Jack Stone <jwjstone@fastmail.fm>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dma/timb_dma.c')
-rw-r--r-- | drivers/dma/timb_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
759 | pdata->channels + i; | 759 | pdata->channels + i; |
760 | 760 | ||
761 | /* even channels are RX, odd are TX */ | 761 | /* even channels are RX, odd are TX */ |
762 | if (((i % 2) && pchan->rx) || (!(i % 2) && !pchan->rx)) { | 762 | if ((i % 2) == pchan->rx) { |
763 | dev_err(&pdev->dev, "Wrong channel configuration\n"); | 763 | dev_err(&pdev->dev, "Wrong channel configuration\n"); |
764 | err = -EINVAL; | 764 | err = -EINVAL; |
765 | goto err_tasklet_kill; | 765 | goto err_tasklet_kill; |