Skip to content

Commit

Permalink
[media] [trivial] omap24xxcam-dma: Fix logical test
Browse files Browse the repository at this point in the history
Likely misuse of & vs &&.

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Joe Perches authored and Mauro Carvalho Chehab committed Dec 9, 2011
1 parent 71c7a97 commit 9aa7705
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/omap24xxcam-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ int omap24xxcam_sgdma_queue(struct omap24xxcam_sgdma *sgdma,
unsigned long flags;
struct sgdma_state *sg_state;

if ((sglen < 0) || ((sglen > 0) & !sglist))
if ((sglen < 0) || ((sglen > 0) && !sglist))
return -EINVAL;

spin_lock_irqsave(&sgdma->lock, flags);
Expand Down

0 comments on commit 9aa7705

Please sign in to comment.