projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5fc6d89
)
dma/timberdale: simplify conditional
author
Nicolas Kaiser
<nikai@nikai.net>
Thu, 7 Oct 2010 22:48:01 +0000
(
00:48
+0200)
committer
Dan Williams
<dan.j.williams@intel.com>
Tue, 19 Oct 2010 22:20:11 +0000
(15:20 -0700)
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>
drivers/dma/timb_dma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/timb_dma.c
b/drivers/dma/timb_dma.c
index 2ec1ed56f20436d5e5d3df9e57f1f09f81297997..3b88a4e7c98a02e9f1640d3bd39272b9034beb62 100644
(file)
--- 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;