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

Greg KH gregkh at linuxfoundation.org
Wed May 15 13:14:51 UTC 2019


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...


More information about the devel mailing list