usb:gadget Simplify usb_decode_get_set_descriptor function.
authorPawel Laszczak <pawell@cadence.com>
Tue, 2 Jul 2019 13:38:00 +0000 (14:38 +0100)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 3 Jul 2019 07:46:03 +0000 (10:46 +0300)
commitc2af6b07803ebd099950cd608f404a7bff9037b2
treeb3a44e54d8b0e4348a406a593514f76e3d127e4d
parentca888ce7495e4e1578c86c37b0c82f6709da477c
usb:gadget Simplify usb_decode_get_set_descriptor function.

Patch moves switch responsible for decoding descriptor type
outside snprintf. It improves code readability a little.

Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/debug.c