diff options
author | Joe Perches <joe@perches.com> | 2011-11-27 15:42:15 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-12-09 20:28:42 -0200 |
commit | 9aa7705c966c750dda3d5c8d8a20f8e46668911c (patch) | |
tree | 73b19bc2d46bfb3e16fcd5c703500a42141ae314 /drivers/media/video/omap24xxcam-dma.c | |
parent | 71c7a97289571ef5246b7f20d60b44961144c82f (diff) | |
download | linux-9aa7705c966c750dda3d5c8d8a20f8e46668911c.tar.gz linux-9aa7705c966c750dda3d5c8d8a20f8e46668911c.tar.bz2 linux-9aa7705c966c750dda3d5c8d8a20f8e46668911c.zip |
[media] [trivial] omap24xxcam-dma: Fix logical test
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>
Diffstat (limited to 'drivers/media/video/omap24xxcam-dma.c')
-rw-r--r-- | drivers/media/video/omap24xxcam-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/omap24xxcam-dma.c b/drivers/media/video/omap24xxcam-dma.c index 1d54b86c936b..3ea38a8def8e 100644 --- a/drivers/media/video/omap24xxcam-dma.c +++ b/drivers/media/video/omap24xxcam-dma.c @@ -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); |