[PATCH v2 1/5] staging: kpc2000: inverted conditional in order to reduce indentation.

Jeremy Sowden jeremy at azazel.net
Wed May 15 13:19:43 UTC 2019


On 2019-05-15, at 15:14:51 +0200, Greg KH wrote:
> On Wed, May 15, 2019 at 12:14:33PM +0100, Jeremy Sowden wrote:
> > Changed:
> >
> >   for (...) {
> >     ...
> >     if (expr) {
> >       ...
> >     }
> >   }
> >
> > into:
> >
> >   for (...) {
> >     ...
> >     if (!expr)
> >       continue;
> >     ...
> >   }
> >
> > in order to reduce indentation of conditional block.  Fixed
> > indentation of cases blocks at the same time.
> >
> > Signed-off-by: Jeremy Sowden <jeremy at azazel.net>
> > Reviewed-by: Dan Carpenter <dan.carpenter at oracle.com>
> > ---
> >  drivers/staging/kpc2000/kpc2000/cell_probe.c | 43 +++++++++++---------
> >  1 file changed, 24 insertions(+), 19 deletions(-)
>
> Always be sure to cc: the proper maintainer and developers for your
> patches.  Otherwise they might get lost in the noise of a mailing
> list...

Understood.

Thanks,

J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20190515/32cea4a0/attachment.asc>


More information about the devel mailing list