[U-Boot] [PATCH 1/1] usb: xhci-keystone: remove superfluous assignment

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Mar 18 12:55:50 UTC 2018


There is no need to set variables to NULL if they are not used before
the next assignment.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/usb/host/xhci-keystone.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/host/xhci-keystone.c b/drivers/usb/host/xhci-keystone.c
index f322a803fe..1a3dcf5edb 100644
--- a/drivers/usb/host/xhci-keystone.c
+++ b/drivers/usb/host/xhci-keystone.c
@@ -154,8 +154,8 @@ static int keystone_xhci_phy_suspend(void)
 {
 	int loop_cnt = 0;
 	struct xhci_hcor *hcor;
-	uint32_t *portsc_1 = NULL;
-	uint32_t *portsc_2 = NULL;
+	uint32_t *portsc_1;
+	uint32_t *portsc_2;
 	u32 val, usb2_pls, usb3_pls, event_q;
 	struct dwc3 *dwc3_reg = keystone.dwc3_reg;
 
-- 
2.16.2



More information about the U-Boot mailing list