All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment
@ 2018-03-18 13:04 Heinrich Schuchardt
  2018-03-19  3:00 ` Bin Meng
  0 siblings, 1 reply; 3+ messages in thread
From: Heinrich Schuchardt @ 2018-03-18 13:04 UTC (permalink / raw)
  To: u-boot

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];
-- 
2.16.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment
  2018-03-18 13:04 [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment Heinrich Schuchardt
@ 2018-03-19  3:00 ` Bin Meng
  2018-03-19  3:11   ` Bin Meng
  0 siblings, 1 reply; 3+ messages in thread
From: Bin Meng @ 2018-03-19  3:00 UTC (permalink / raw)
  To: u-boot

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>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment
  2018-03-19  3:00 ` Bin Meng
@ 2018-03-19  3:11   ` Bin Meng
  0 siblings, 0 replies; 3+ messages in thread
From: Bin Meng @ 2018-03-19  3:11 UTC (permalink / raw)
  To: u-boot

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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-19  3:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-18 13:04 [U-Boot] [PATCH 1/1] usb: xhci: remove superfluous assignment Heinrich Schuchardt
2018-03-19  3:00 ` Bin Meng
2018-03-19  3:11   ` Bin Meng

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.