lkml.org 
[lkml]   [2016]   [Feb]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3] usb: type-c: USB Type-C Connector System Software Interface
From
Date
On Wed, 2016-02-10 at 13:56 +0200, Andy Shevchenko wrote:
> > +err:
> > + if (i > 0)
> > + for (; i >= 0; i--, con--)
> > + typec_unregister_port(con->port);
>
> Perhaps
>
> while (--i >= 0) {
> ...
> }

While we are at it. No we should not change the semantics
of conditionals for the sake of appearance.

Oliver


\
 
 \ /
  Last update: 2016-02-10 15:41    [W:0.322 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site