Received: from eggs.gnu.org ([2001:4830:134:3::10]:34000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z58cn-0005MS-6P for qemu-devel@nongnu.org; Wed, 17 Jun 2015 04:23:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z58ch-0000Ct-0k for qemu-devel@nongnu.org; Wed, 17 Jun 2015 04:23:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34530) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z58cg-0000Cl-Rd for qemu-devel@nongnu.org; Wed, 17 Jun 2015 04:23:02 -0400 From: Markus Armbruster References: <1433351328-23326-1-git-send-email-pbonzini@redhat.com> <1433351328-23326-9-git-send-email-pbonzini@redhat.com> <55700630.7090006@redhat.com> <55772B9F.6040300@twiddle.net> <5581284B.7040208@redhat.com> Date: Wed, 17 Jun 2015 10:22:59 +0200 In-Reply-To: <5581284B.7040208@redhat.com> (Paolo Bonzini's message of "Wed, 17 Jun 2015 09:56:59 +0200") Message-ID: <87si9qd9r0.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 08/23] pflash_cfi01: change to new-style MMIO accessors List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Crosthwaite , "Michael S. Tsirkin" , "qemu-devel@nongnu.org Developers" , Gerd Hoffmann , Laszlo Ersek , Richard Henderson Paolo Bonzini writes: > On 09/06/2015 20:08, Richard Henderson wrote: >> > > + bool be = !!(pfl->features & (1 << PFLASH_BE)); >> > > >> > > !!() not needed. Otherwise >> > >> > I don't like magic bool-ification... >> >> I don't like !! just as much. If you don't like implicit conversion, then use >> != 0. > > Fair enough, let's add to the coding still that we don't like !!. $ git-grep '!!' | wc -l 369 $ git-grep -l '!!' | wc -l 170 Adding arbitrary rules to CODING_STYLE is one thing, adding rules that are widely violated in existing code and not flagged by checkpatch.pl is quite another.