[U-Boot] [PATCH 1/1] usb: sl811-hcd: remove duplicat assignment

Heinrich Schuchardt xypron.glpk at gmx.de
Sun Mar 18 12:29:32 UTC 2018


Don't make the same assignment twice.

Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
---
 drivers/usb/host/sl811-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index b29c67e189..e587895bfc 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -93,7 +93,7 @@ static void inline sl811_write_buf(__u8 offset, __u8 *buf, __u8 size)
 int usb_init_kup4x (void)
 {
 	volatile immap_t *immap = (immap_t *) CONFIG_SYS_IMMR;
-	volatile memctl8xx_t *memctl = &immap->im_memctl;
+	volatile memctl8xx_t *memctl;
 	int i;
 	unsigned char tmp;
 
-- 
2.16.2



More information about the U-Boot mailing list