Przeglądaj źródła

staging: ced1401: remove an obvious commit about the minor number

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>
Devendra Naga 13 lat temu
rodzic
commit
ff549e4772
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      drivers/staging/ced1401/usb1401.c

+ 1 - 1
drivers/staging/ced1401/usb1401.c

@@ -1537,7 +1537,7 @@ error:
 static void ced_disconnect(struct usb_interface *interface)
 static void ced_disconnect(struct usb_interface *interface)
 {
 {
 	DEVICE_EXTENSION *pdx = usb_get_intfdata(interface);
 	DEVICE_EXTENSION *pdx = usb_get_intfdata(interface);
-	int minor = interface->minor;	// save for message at the end
+	int minor = interface->minor;
 	int i;
 	int i;
 
 
 	usb_set_intfdata(interface, NULL);	// remove the pdx from the interface
 	usb_set_intfdata(interface, NULL);	// remove the pdx from the interface