diff options
Diffstat (limited to 'drivers/media/video/zr364xx.c')
-rw-r--r-- | drivers/media/video/zr364xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/zr364xx.c b/drivers/media/video/zr364xx.c index 3d4bac252902..a82b5bd18d26 100644 --- a/drivers/media/video/zr364xx.c +++ b/drivers/media/video/zr364xx.c | |||
@@ -376,8 +376,8 @@ static int buffer_setup(struct videobuf_queue *vq, unsigned int *count, | |||
376 | if (*count == 0) | 376 | if (*count == 0) |
377 | *count = ZR364XX_DEF_BUFS; | 377 | *count = ZR364XX_DEF_BUFS; |
378 | 378 | ||
379 | while (*size * (*count) > ZR364XX_DEF_BUFS * 1024 * 1024) | 379 | if (*size * *count > ZR364XX_DEF_BUFS * 1024 * 1024) |
380 | (*count)--; | 380 | *count = (ZR364XX_DEF_BUFS * 1024 * 1024) / *size; |
381 | 381 | ||
382 | return 0; | 382 | return 0; |
383 | } | 383 | } |