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

There is not need to set variables to NULL before an assignment.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de --- drivers/usb/host/xhci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index 4673738d1e..7e3c373e64 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c @@ -544,8 +544,8 @@ static int xhci_set_configuration(struct usb_device *udev)
/* filling up ep contexts */ for (cur_ep = 0; cur_ep < num_of_ep; cur_ep++) { - struct usb_endpoint_descriptor *endpt_desc = NULL; - struct usb_ss_ep_comp_descriptor *ss_ep_comp_desc = NULL; + struct usb_endpoint_descriptor *endpt_desc; + struct usb_ss_ep_comp_descriptor *ss_ep_comp_desc;
endpt_desc = &ifdesc->ep_desc[cur_ep]; ss_ep_comp_desc = &ifdesc->ss_ep_comp_desc[cur_ep];

On Sun, Mar 18, 2018 at 9:04 PM, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
There is not need to set variables to NULL before an assignment.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
drivers/usb/host/xhci.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 9:04 PM, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
There is not need to set variables to NULL before an assignment.
Signed-off-by: Heinrich Schuchardt xypron.glpk@gmx.de
drivers/usb/host/xhci.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