From 8e5a6e3870f7be72c358d03ec50a8edfe68e9096 Mon Sep 17 00:00:00 2001 From: Lei Qian Date: Sat, 1 Sep 2018 10:32:18 +0800 Subject: [PATCH] usb: fix variable not initial issue PD#165090:usb: fix variable not initial issue Change-Id: Ideee120dcde79a2cd0b688413784e6e9e474c6da Signed-off-by: Lei Qian --- drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_linux.c b/drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_linux.c index 2401e27..3563fa9 100644 --- a/drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_linux.c +++ b/drivers/amlogic/usb/dwc_otg/310/dwc_otg_hcd_linux.c @@ -558,7 +558,7 @@ static void dump_urb_info(struct urb *urb, char *fn_name) (usb_pipein(urb->pipe) ? "IN" : "OUT")); DWC_PRINTF(" Endpoint type: %s\n", ( { - char *pipetype; + char *pipetype = ""; switch (usb_pipetype(urb->pipe)) { case PIPE_CONTROL: pipetype = "CONTROL"; -- 2.7.4