There is not need to set variables to NULL before an assignment. Signed-off-by: Heinrich Schuchardt <xypron.g...@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]; -- 2.16.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot