[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z4pb5CTS5n5wtJ7d@smile.fi.intel.com>
Date: Fri, 17 Jan 2025 15:32:20 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Thinh Nguyen <Thinh.Nguyen@...opsys.com>
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Felipe Balbi <balbi@...nel.org>,
"linux-usb@...r.kernel.org" <linux-usb@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>, Ferry Toth <fntoth@...il.com>
Subject: Re: [PATCH v1 2/3] usb: dwc3: gadget: Add support for
snps,reserved-endpoints property
On Thu, Jan 16, 2025 at 11:35:19PM +0000, Thinh Nguyen wrote:
> On Thu, Jan 16, 2025, Andy Shevchenko wrote:
...
> > for (epnum = 0; epnum < total; epnum++) {
> > - int ret;
> > + for (num = 0; num < count; num++) {
> > + if (epnum == eps[num])
> > + break;
> > + }
> > + if (num < count)
> > + continue;
>
> You can probably rewrite this logic better.
Any suggestions?
Thanks for the review!
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists