提交 9aa7705c 编写于 作者: J Joe Perches 提交者: Mauro Carvalho Chehab

[media] [trivial] omap24xxcam-dma: Fix logical test

Likely misuse of & vs &&.
Signed-off-by: NJoe Perches <joe@perches.com>
Acked-by: NSakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 71c7a972
...@@ -506,7 +506,7 @@ int omap24xxcam_sgdma_queue(struct omap24xxcam_sgdma *sgdma, ...@@ -506,7 +506,7 @@ int omap24xxcam_sgdma_queue(struct omap24xxcam_sgdma *sgdma,
unsigned long flags; unsigned long flags;
struct sgdma_state *sg_state; struct sgdma_state *sg_state;
if ((sglen < 0) || ((sglen > 0) & !sglist)) if ((sglen < 0) || ((sglen > 0) && !sglist))
return -EINVAL; return -EINVAL;
spin_lock_irqsave(&sgdma->lock, flags); spin_lock_irqsave(&sgdma->lock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册