Browse Source

[PATCH] USB: Zero driver: Removed duplicated code

Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Franck Bui-Huu 19 years ago
parent
commit
0eb8c7cafe
1 changed files with 0 additions and 6 deletions
  1. 0 6
      drivers/usb/gadget/zero.c

+ 0 - 6
drivers/usb/gadget/zero.c

@@ -1224,12 +1224,6 @@ autoconf_fail:
 		loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
 		loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
 	}
 	}
 
 
-	if (gadget->is_otg) {
-		otg_descriptor.bmAttributes |= USB_OTG_HNP,
-		source_sink_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
-		loopback_config.bmAttributes |= USB_CONFIG_ATT_WAKEUP;
-	}
-
 	usb_gadget_set_selfpowered (gadget);
 	usb_gadget_set_selfpowered (gadget);
 
 
 	init_timer (&dev->resume);
 	init_timer (&dev->resume);