Re: [PATCH][-next] loop: fix incorrect nesting levels on braces in nested if statements

From: Jens Axboe
Date: Fri Jun 09 2017 - 11:58:25 EST


On 06/09/2017 09:54 AM, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Adding another set of braces clarifies the block and ensures that
> both the setting of err and the error exit are executed on the
> deepest nested if statement.
>
> Detected by CoverityScan, CID#1440959 ("Nesting level does not
> match indentation")

Already fixed:

http://git.kernel.dk/cgit/linux-block/commit/?h=for-4.13/block&id=b040ad9cf6a169cc000a5324fcada695dfa1f4b3

--
Jens Axboe