Skip to content

Commit

Permalink
drivers/staging/line6/driver.c: Drop unneeded put functions.
Browse files Browse the repository at this point in the history
This seems to be the result of patches ab366c1 and 1027f47 crossing each
other.  Patch ab366c1 adds calls to usb_put_intf and usb_put_dev at the
end of the function line6_probe, in the error handling code, while patch
1027f47 moves the calls to the corresponding get function from the
beginning to the end of line6_probe, making the calls to put in the error
handling code unnecessary.

// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed May 17, 2011
1 parent 10ceaac commit c5cbebf
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/staging/line6/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,6 @@ static int line6_probe(struct usb_interface *interface,
err_destruct:
line6_destruct(interface);
err_put:
usb_put_intf(interface);
usb_put_dev(usbdev);
return ret;
}

Expand Down

0 comments on commit c5cbebf

Please sign in to comment.