diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/video/usbvision/usbvision-core.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/media/video/usbvision/usbvision-core.c b/drivers/media/video/usbvision/usbvision-core.c index 8bc03b9e1315..6ba16abeebdd 100644 --- a/drivers/media/video/usbvision/usbvision-core.c +++ b/drivers/media/video/usbvision/usbvision-core.c | |||
@@ -390,10 +390,9 @@ int usbvision_scratch_alloc(struct usb_usbvision *usbvision) | |||
390 | 390 | ||
391 | void usbvision_scratch_free(struct usb_usbvision *usbvision) | 391 | void usbvision_scratch_free(struct usb_usbvision *usbvision) |
392 | { | 392 | { |
393 | if (usbvision->scratch != NULL) { | 393 | vfree(usbvision->scratch); |
394 | vfree(usbvision->scratch); | 394 | usbvision->scratch = NULL; |
395 | usbvision->scratch = NULL; | 395 | |
396 | } | ||
397 | } | 396 | } |
398 | 397 | ||
399 | /* | 398 | /* |
@@ -506,10 +505,9 @@ int usbvision_decompress_alloc(struct usb_usbvision *usbvision) | |||
506 | */ | 505 | */ |
507 | void usbvision_decompress_free(struct usb_usbvision *usbvision) | 506 | void usbvision_decompress_free(struct usb_usbvision *usbvision) |
508 | { | 507 | { |
509 | if (usbvision->IntraFrameBuffer != NULL) { | 508 | vfree(usbvision->IntraFrameBuffer); |
510 | vfree(usbvision->IntraFrameBuffer); | 509 | usbvision->IntraFrameBuffer = NULL; |
511 | usbvision->IntraFrameBuffer = NULL; | 510 | |
512 | } | ||
513 | } | 511 | } |
514 | 512 | ||
515 | /************************************************************ | 513 | /************************************************************ |