mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-21 08:53:41 +00:00
V4L/DVB (5026): Pvrusb2-hdw kfree cleanup
Removes redundant argument check for kfree(). Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
parent
16e9495d8b
commit
22071a42a1
@ -1926,10 +1926,10 @@ struct pvr2_hdw *pvr2_hdw_create(struct usb_interface *intf,
|
||||
if (hdw) {
|
||||
usb_free_urb(hdw->ctl_read_urb);
|
||||
usb_free_urb(hdw->ctl_write_urb);
|
||||
if (hdw->ctl_read_buffer) kfree(hdw->ctl_read_buffer);
|
||||
if (hdw->ctl_write_buffer) kfree(hdw->ctl_write_buffer);
|
||||
if (hdw->controls) kfree(hdw->controls);
|
||||
if (hdw->mpeg_ctrl_info) kfree(hdw->mpeg_ctrl_info);
|
||||
kfree(hdw->ctl_read_buffer);
|
||||
kfree(hdw->ctl_write_buffer);
|
||||
kfree(hdw->controls);
|
||||
kfree(hdw->mpeg_ctrl_info);
|
||||
kfree(hdw);
|
||||
}
|
||||
return NULL;
|
||||
@ -1994,10 +1994,10 @@ void pvr2_hdw_destroy(struct pvr2_hdw *hdw)
|
||||
unit_pointers[hdw->unit_number] = NULL;
|
||||
}
|
||||
} while (0); up(&pvr2_unit_sem);
|
||||
if (hdw->controls) kfree(hdw->controls);
|
||||
if (hdw->mpeg_ctrl_info) kfree(hdw->mpeg_ctrl_info);
|
||||
if (hdw->std_defs) kfree(hdw->std_defs);
|
||||
if (hdw->std_enum_names) kfree(hdw->std_enum_names);
|
||||
kfree(hdw->controls);
|
||||
kfree(hdw->mpeg_ctrl_info);
|
||||
kfree(hdw->std_defs);
|
||||
kfree(hdw->std_enum_names);
|
||||
kfree(hdw);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user