Skip to content

Commit

Permalink
[PATCH] USB: Zero driver: Removed duplicated code
Browse files Browse the repository at this point in the history
Signed-off-by: Franck Bui-Huu <vagabon.xyz@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Franck Bui-Huu authored and Greg Kroah-Hartman committed Mar 20, 2006
1 parent efafe6f commit 0eb8c7c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions drivers/usb/gadget/zero.c
Original file line number Diff line number Diff line change
Expand Up @@ -1224,12 +1224,6 @@ zero_bind (struct usb_gadget *gadget)
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);

init_timer (&dev->resume);
Expand Down

0 comments on commit 0eb8c7c

Please sign in to comment.