Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5e2c217e authored by Figo.zhang's avatar Figo.zhang Committed by Mauro Carvalho Chehab
Browse files

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: default avatarFigo.zhang <figo1802@gmail.com>
Signed-off-by: default avatarDouglas Schilling Landgraf <dougsland@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent f1ca0adf
Loading
Loading
Loading
Loading
+6 −8
Original line number Diff line number Diff line
@@ -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;
	}

}

/*
@@ -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;
	}

}

/************************************************************