Re: [PATCH RESEND v3 04/13] blk-mq: Invert check in blk_mq_update_nr_requests()

From: Hannes Reinecke
Date: Tue Sep 14 2021 - 01:38:39 EST


On 9/13/21 5:12 PM, John Garry wrote:
It's easier to read:

if (x)
X;
else
Y;

over:

if (!x)
Y;
else
X;

No functional change intended.

Signed-off-by: John Garry <john.garry@xxxxxxxxxx>
Reviewed-by: Ming Lei <ming.lei@xxxxxxxxxx>
---
block/blk-mq.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

Reviewed-by: Hannes Reinecke

Cheers,

Hannes
--
Dr. Hannes Reinecke Kernel Storage Architect
hare@xxxxxxx +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer