Re: [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment
On Mon, Mar 19, 2018 at 11:00 AM, Bin Mengwrote: > On Sun, Mar 18, 2018 at 9:04 PM, Heinrich Schuchardt > wrote: >> There is not need to set variables to NULL before an assignment. >> >> Signed-off-by: Heinrich Schuchardt >> --- >> drivers/usb/host/xhci.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> > > Reviewed-by: Bin Meng applied to u-boot-usb/topic-xhci, thanks! ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment
On Sun, Mar 18, 2018 at 9:04 PM, Heinrich Schuchardtwrote: > There is not need to set variables to NULL before an assignment. > > Signed-off-by: Heinrich Schuchardt > --- > drivers/usb/host/xhci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[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--- 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 = >ep_desc[cur_ep]; ss_ep_comp_desc = >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