diff options
author | Nicholas Mc Guire <hofrat@osadl.org> | 2017-01-12 17:33:26 +0100 |
---|---|---|
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | 2017-01-16 10:11:51 +0100 |
commit | efe357f4633a12ca89bdf9bbdd8aaf5a7a0cc3c0 (patch) | |
tree | 225b7e97c609fb641f8d321a88ab59760f24dd08 | |
parent | usb: dwc2: gadget: Fix GUSBCFG.USBTRDTIM value (diff) | |
download | linux-efe357f4633a12ca89bdf9bbdd8aaf5a7a0cc3c0.tar.xz linux-efe357f4633a12ca89bdf9bbdd8aaf5a7a0cc3c0.zip |
usb: dwc2: host: fix Wmaybe-uninitialized warning
Uninitialized char* causes a sparse build-warning, fix it up by
initializing it to NULL.
Acked-by: John Youn <johnyoun@synopsys.com>
Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
-rw-r--r-- | drivers/usb/dwc2/hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/dwc2/hcd.c b/drivers/usb/dwc2/hcd.c index 8b264d4aaaeb..46d0ad5105e4 100644 --- a/drivers/usb/dwc2/hcd.c +++ b/drivers/usb/dwc2/hcd.c @@ -4492,8 +4492,8 @@ static void dwc2_dump_urb_info(struct usb_hcd *hcd, struct urb *urb, { #ifdef VERBOSE_DEBUG struct dwc2_hsotg *hsotg = dwc2_hcd_to_hsotg(hcd); - char *pipetype; - char *speed; + char *pipetype = NULL; + char *speed = NULL; dev_vdbg(hsotg->dev, "%s, urb %p\n", fn_name, urb); dev_vdbg(hsotg->dev, " Device address: %d\n", |