diff options
Diffstat (limited to 'drivers/media/video/videocodec.c')
-rw-r--r-- | drivers/media/video/videocodec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/media/video/videocodec.c b/drivers/media/video/videocodec.c index c9d5f1a873cc..839db622040d 100644 --- a/drivers/media/video/videocodec.c +++ b/drivers/media/video/videocodec.c | |||
@@ -353,8 +353,7 @@ videocodec_build_table (void) | |||
353 | dprintk(3, "videocodec_build table: %d entries, %d bytes\n", i, | 353 | dprintk(3, "videocodec_build table: %d entries, %d bytes\n", i, |
354 | size); | 354 | size); |
355 | 355 | ||
356 | if (videocodec_buf) | 356 | kfree(videocodec_buf); |
357 | kfree(videocodec_buf); | ||
358 | videocodec_buf = (char *) kmalloc(size, GFP_KERNEL); | 357 | videocodec_buf = (char *) kmalloc(size, GFP_KERNEL); |
359 | 358 | ||
360 | i = 0; | 359 | i = 0; |
@@ -471,8 +470,7 @@ videocodec_exit (void) | |||
471 | { | 470 | { |
472 | #ifdef CONFIG_PROC_FS | 471 | #ifdef CONFIG_PROC_FS |
473 | remove_proc_entry("videocodecs", NULL); | 472 | remove_proc_entry("videocodecs", NULL); |
474 | if (videocodec_buf) | 473 | kfree(videocodec_buf); |
475 | kfree(videocodec_buf); | ||
476 | #endif | 474 | #endif |
477 | } | 475 | } |
478 | 476 | ||