aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/em28xx/em28xx-video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/video/em28xx/em28xx-video.c b/drivers/media/video/em28xx/em28xx-video.c
index 7b9ec6e493e4..95a4b60a1eda 100644
--- a/drivers/media/video/em28xx/em28xx-video.c
+++ b/drivers/media/video/em28xx/em28xx-video.c
@@ -277,12 +277,13 @@ static void em28xx_copy_vbi(struct em28xx *dev,
277{ 277{
278 void *startwrite, *startread; 278 void *startwrite, *startread;
279 int offset; 279 int offset;
280 int bytesperline = dev->vbi_width; 280 int bytesperline;
281 281
282 if (dev == NULL) { 282 if (dev == NULL) {
283 em28xx_isocdbg("dev is null\n"); 283 em28xx_isocdbg("dev is null\n");
284 return; 284 return;
285 } 285 }
286 bytesperline = dev->vbi_width;
286 287
287 if (dma_q == NULL) { 288 if (dma_q == NULL) {
288 em28xx_isocdbg("dma_q is null\n"); 289 em28xx_isocdbg("dma_q is null\n");