Re: RFC: small syscons and kbd patch

From: Ed Schouten <ed_at_80386.nl>
Date: Fri, 5 Dec 2008 08:22:29 +0100
* Maksim Yevmenkin <maksim.yevmenkin_at_gmail.com> wrote:
> the idea was to ensure that kbd->kb_locked variable only takes values
> 0 (zero) and 1 (one).

I often use constructs like these to do that:

	foo = bar ? 1 : 0;

Maybe !!bar is a lot shorter to write, I think the line above is a lot
easier to read.

-- 
 Ed Schouten <ed_at_80386.nl>
 WWW: http://80386.nl/

Received on Fri Dec 05 2008 - 06:22:30 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:38 UTC