Re: [Drbd-dev] [PATCH] block:drbd:drbd_receiver - Change 1/0 to true/false for bool type variable rv in function overlapping_resync_write().

From: Lars Ellenberg
Date: Wed May 27 2015 - 05:40:15 EST


On Tue, May 26, 2015 at 01:45:09AM +0530, Shailendra Verma wrote:
> In function overlapping_resync_write() variable rv is bool type.
> Hence assigning the values as true/false instead of 1/0.

I like 0 and 1 better. So unless the powers that be rule this to be the
recommended or mandatory coding style, I consider this just noise.

Lars

> - bool rv = 0;
> + bool rv = false;

> - rv = 1;
> + rv = true;

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/