usb: gadget: g_dnl: only set iSerialNumber if we have a serial#
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 22 Feb 2017 15:12:40 +0000 (17:12 +0200)
committerMarek Vasut <marex@denx.de>
Fri, 14 Apr 2017 14:44:16 +0000 (16:44 +0200)
commit842778a091047b0c868efa12229633959f711152
tree7e24aa66ed0bbd2189c4281966d69a590125a451
parent12d0b8f5f07b76d7447d60f7528d578233553909
usb: gadget: g_dnl: only set iSerialNumber if we have a serial#

We don't want to claim that we support a serial number string and
later return nothing. Because of that, if g_dnl_serial is an empty
string, let's skip setting iSerialNumber to a valid number.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/g_dnl.c