Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753171Ab3IVNfx (ORCPT ); Sun, 22 Sep 2013 09:35:53 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55532 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752387Ab3IVNfw (ORCPT ); Sun, 22 Sep 2013 09:35:52 -0400 Date: Sun, 22 Sep 2013 15:35:50 +0200 From: Pavel Machek To: Peter Senna Tschudin Cc: gregkh@linuxfoundation.org, harsh1kumar@gmail.com, dan.carpenter@oracle.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH 17/19] staging: Change variable type to bool Message-ID: <20130922133550.GA8643@amd.pavel.ucw.cz> References: <1379802471-30252-1-git-send-email-peter.senna@gmail.com> <1379802471-30252-17-git-send-email-peter.senna@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1379802471-30252-17-git-send-email-peter.senna@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 854 Lines: 29 On Sun 2013-09-22 00:27:49, Peter Senna Tschudin wrote: > The variable Trigger is only assigned the values true and false. > Change its type to bool. > > The simplified semantic patch that find this problem is as > follows (http://coccinelle.lip6.fr/): > > @exists@ > type T; > identifier b; > @@ > - T > + bool > b = ...; > ... when any > b = \(true\|false\) > > Signed-off-by: Peter Senna Tschudin Acked-by: Pavel Machek -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/