lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAOZdJXWp24Kday8vt6vXsr6bYbVyLmMqrFfY_n7kboKpj0a8Ug@mail.gmail.com>
Date:	Sun, 4 Dec 2011 02:35:59 +0000
From:	Tabi Timur-B04825 <B04825@...escale.com>
To:	Florian Tobias Schandinat <FlorianSchandinat@....de>
CC:	Ondrej Zary <linux@...nbow-software.org>,
	"linux-fbdev@...r.kernel.org" <linux-fbdev@...r.kernel.org>,
	Paul Mundt <lethal@...ux-sh.org>,
	Kernel development list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3.1] [resend] Resurrect Intel740 driver: i740fb

On Sat, Dec 3, 2011 at 3:45 PM, Florian Tobias Schandinat
<FlorianSchandinat@....de> wrote:
>
>> +     return !!(i740inreg(par, XRX, REG_DDC_STATE) & DDC_SCL);
>
> Why "!!"?

This is a trick that guarantees that the return value is either 0 or
1.  Without the !!, the return value will be either 0 or DDC_SCL.

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ