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

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@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;

On Sun, Mar 18, 2018 at 8:55 PM, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
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@gmx.de
drivers/usb/host/xhci-keystone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com

On Mon, Mar 19, 2018 at 11:00 AM, Bin Meng bmeng.cn@gmail.com wrote:
On Sun, Mar 18, 2018 at 8:55 PM, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
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@gmx.de
drivers/usb/host/xhci-keystone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
applied to u-boot-usb/topic-xhci, thanks!
participants (2)
-
Bin Meng
-
Heinrich Schuchardt