staging: go7007: Remove NULL check before kfree
This patch was generated by the following semantic patch: // <smpl> @@ expression E; @@ - if (E != NULL) { kfree(E); } + kfree(E); @@ expression E; @@ - if (E != NULL) { kfree(E); E = NULL; } + kfree(E); + E = NULL; // </smpl> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
b00917802b
commit
56d1763970
|
@ -1247,15 +1247,13 @@ static void go7007_usb_disconnect(struct usb_interface *intf)
|
|||
vurb = usb->video_urbs[i];
|
||||
if (vurb) {
|
||||
usb_kill_urb(vurb);
|
||||
if (vurb->transfer_buffer)
|
||||
kfree(vurb->transfer_buffer);
|
||||
kfree(vurb->transfer_buffer);
|
||||
usb_free_urb(vurb);
|
||||
}
|
||||
aurb = usb->audio_urbs[i];
|
||||
if (aurb) {
|
||||
usb_kill_urb(aurb);
|
||||
if (aurb->transfer_buffer)
|
||||
kfree(aurb->transfer_buffer);
|
||||
kfree(aurb->transfer_buffer);
|
||||
usb_free_urb(aurb);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue