[media] [trivial] omap24xxcam-dma: Fix logical test
authorJoe Perches <joe@perches.com>
Sun, 27 Nov 2011 18:42:15 +0000 (15:42 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 9 Dec 2011 22:28:42 +0000 (20:28 -0200)
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>
drivers/media/video/omap24xxcam-dma.c

index 1d54b86..3ea38a8 100644 (file)
@@ -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);