From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751162AbbDGFpQ (ORCPT ); Tue, 7 Apr 2015 01:45:16 -0400 Received: from mga11.intel.com ([192.55.52.93]:45392 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750756AbbDGFpN convert rfc822-to-8bit (ORCPT ); Tue, 7 Apr 2015 01:45:13 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.11,536,1422950400"; d="scan'208";a="676156407" From: "Zhang, Rui" To: Joe Perches , "linux-kernel@vger.kernel.org" , Eduardo Valentin CC: "linux-pm@vger.kernel.org" Subject: RE: [PATCH 6/7] thermal: Use bool function return values of true/false not 1/0 Thread-Topic: [PATCH 6/7] thermal: Use bool function return values of true/false not 1/0 Thread-Index: AQHQaxEbcFSH/VwzxkeSNX4d+47SMp1BFTqw Date: Tue, 7 Apr 2015 05:43:02 +0000 Message-ID: <744357E9AAD1214791ACBA4B0B909263014CE7E8@SHSMSX101.ccr.corp.intel.com> References: <04644fca79a1987084bc46fca59c419fab0a4448.1427736972.git.joe@perches.com> In-Reply-To: <04644fca79a1987084bc46fca59c419fab0a4448.1427736972.git.joe@perches.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Joe Perches [mailto:joe@perches.com] > Sent: Tuesday, March 31, 2015 1:43 AM > To: linux-kernel@vger.kernel.org; Zhang, Rui; Eduardo Valentin > Cc: linux-pm@vger.kernel.org > Subject: [PATCH 6/7] thermal: Use bool function return values of true/false not > 1/0 > Importance: High > > Use the normal return values for bool functions > > Signed-off-by: Joe Perches Applied. Thanks, rui > --- > drivers/thermal/thermal_core.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/thermal/thermal_core.h b/drivers/thermal/thermal_core.h > index 9e20e4d..749d41a 100644 > --- a/drivers/thermal/thermal_core.h > +++ b/drivers/thermal/thermal_core.h > @@ -115,7 +115,7 @@ static inline int of_thermal_get_ntrips(struct > thermal_zone_device *tz) static inline bool of_thermal_is_trip_valid(struct > thermal_zone_device *tz, > int trip) > { > - return 0; > + return false; > } > static inline const struct thermal_trip * of_thermal_get_trip_points(struct > thermal_zone_device *tz) > -- > 2.1.2