diff options
author | Dr. David Alan Gilbert <linux@treblig.org> | 2011-08-25 16:13:55 -0700 |
---|---|---|
committer | Willy Tarreau <w@1wt.eu> | 2015-09-18 13:52:19 +0200 |
commit | 17fce98016a7d200c691440da403cc65369657d4 (patch) | |
tree | 0a3fd65905ed910ce1dddf8045664fb5692d4ea7 /net/ipv6/xfrm6_tunnel.c | |
parent | 66edde86393c49d5a1897d209739ebf2066b48df (diff) |
dmaengine: fix missing 'cnt' in ?: in dmatest
commit d07a74a546981a09ba490936645fbf0d1340b96c upstream.
Hi,
On the latest tree my compiler has started giving the warning:
drivers/dma/dmatest.c:575:28: warning: the omitted middle operand in ?: will always be ?true?, suggest explicit middle operand [-Wparentheses]
The following patch fixes the missing middle clause with the same
fix that Nicolas Ferre used in the similar clauses.
(There seems to have been a race between him fixing that and
the extra clause going in a little later).
I don't actually know the dmatest code/structures, nor do I own
any hardware to test it on (assuming it needs a DMA engine);
but this patch builds, the existing code is almost certainly
wrong and the fix is the same as the corresponding lines above it.
(WTH is x=y?:z legal C anyway?)
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'net/ipv6/xfrm6_tunnel.c')
0 files changed, 0 insertions, 0 deletions