mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
UPSTREAM: usb: dwc2: host: fix Wmaybe-uninitialized warning
Uninitialized char* causes a sparse build-warning, fix it up by
initializing it to NULL.
Change-Id: I1908e251c1af10ef5ec0a69988b6e9251d59006e
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>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit efe357f463)
This commit is contained in:
committed by
Tao Huang
parent
ce2975094d
commit
eeaee633c5
@@ -4498,8 +4498,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",
|
||||
|
||||
Reference in New Issue
Block a user