Skip to content

Commit

Permalink
staging: ced1401: remove an obvious commit about the minor number
Browse files Browse the repository at this point in the history
in disconnect we assign the device minor number from the interface
pointer to the localvarible minor, and then print it at the end,

this code seems self explanatory so remove the comment of assigning
the minor number to a local variable.

Signed-off-by: Devendra Naga <devendra.aaru@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Devendra Naga authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent 96a031a commit ff549e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ced1401/usb1401.c
Original file line number Diff line number Diff line change
Expand Up @@ -1537,7 +1537,7 @@ static int ced_probe(struct usb_interface *interface,
static void ced_disconnect(struct usb_interface *interface)
{
DEVICE_EXTENSION *pdx = usb_get_intfdata(interface);
int minor = interface->minor; // save for message at the end
int minor = interface->minor;
int i;

usb_set_intfdata(interface, NULL); // remove the pdx from the interface
Expand Down

0 comments on commit ff549e4

Please sign in to comment.