mirror of
https://github.com/torvalds/linux.git
synced 2024-11-08 21:21:47 +00:00
V4L/DVB (11958): usbvision-core.c: vfree does its own NULL check
vfree() does it's own NULL checking,so no need for check before calling it. Signed-off-by: Figo.zhang <figo1802@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
f1ca0adfcf
commit
5e2c217eee
@ -390,10 +390,9 @@ int usbvision_scratch_alloc(struct usb_usbvision *usbvision)
|
||||
|
||||
void usbvision_scratch_free(struct usb_usbvision *usbvision)
|
||||
{
|
||||
if (usbvision->scratch != NULL) {
|
||||
vfree(usbvision->scratch);
|
||||
usbvision->scratch = NULL;
|
||||
}
|
||||
vfree(usbvision->scratch);
|
||||
usbvision->scratch = NULL;
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
@ -506,10 +505,9 @@ int usbvision_decompress_alloc(struct usb_usbvision *usbvision)
|
||||
*/
|
||||
void usbvision_decompress_free(struct usb_usbvision *usbvision)
|
||||
{
|
||||
if (usbvision->IntraFrameBuffer != NULL) {
|
||||
vfree(usbvision->IntraFrameBuffer);
|
||||
usbvision->IntraFrameBuffer = NULL;
|
||||
}
|
||||
vfree(usbvision->IntraFrameBuffer);
|
||||
usbvision->IntraFrameBuffer = NULL;
|
||||
|
||||
}
|
||||
|
||||
/************************************************************
|
||||
|
Loading…
Reference in New Issue
Block a user