Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754754AbdCaIdG (ORCPT ); Fri, 31 Mar 2017 04:33:06 -0400 Received: from terminus.zytor.com ([65.50.211.136]:35961 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752334AbdCaIdE (ORCPT ); Fri, 31 Mar 2017 04:33:04 -0400 Date: Fri, 31 Mar 2017 01:30:49 -0700 From: tip-bot for Nicholas Mc Guire Message-ID: Cc: tglx@linutronix.de, der.herr@hofr.at, john.stultz@linaro.org, mingo@kernel.org, christopher.s.hall@intel.com, hpa@zytor.com, linux-kernel@vger.kernel.org Reply-To: tglx@linutronix.de, der.herr@hofr.at, mingo@kernel.org, christopher.s.hall@intel.com, john.stultz@linaro.org, linux-kernel@vger.kernel.org, hpa@zytor.com In-Reply-To: <1490382215-30505-1-git-send-email-der.herr@hofr.at> References: <1490382215-30505-1-git-send-email-der.herr@hofr.at> To: linux-tip-commits@vger.kernel.org Subject: [tip:timers/core] timekeeping: Remove pointless conversion to bool Git-Commit-ID: 5fc63f9577322d11019b6d357f73f5ce9031f263 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1458 Lines: 36 Commit-ID: 5fc63f9577322d11019b6d357f73f5ce9031f263 Gitweb: http://git.kernel.org/tip/5fc63f9577322d11019b6d357f73f5ce9031f263 Author: Nicholas Mc Guire AuthorDate: Fri, 24 Mar 2017 20:03:35 +0100 Committer: Thomas Gleixner CommitDate: Fri, 31 Mar 2017 10:26:56 +0200 timekeeping: Remove pointless conversion to bool interp_forward is type bool so assignment from a logical operation directly is sufficient. Signed-off-by: Nicholas Mc Guire Cc: "Christopher S. Hall" Cc: John Stultz Link: http://lkml.kernel.org/r/1490382215-30505-1-git-send-email-der.herr@hofr.at Signed-off-by: Thomas Gleixner --- kernel/time/timekeeping.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 5b63a21..9652bc5 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -996,8 +996,7 @@ static int adjust_historical_crosststamp(struct system_time_snapshot *history, return 0; /* Interpolate shortest distance from beginning or end of history */ - interp_forward = partial_history_cycles > total_history_cycles/2 ? - true : false; + interp_forward = partial_history_cycles > total_history_cycles / 2; partial_history_cycles = interp_forward ? total_history_cycles - partial_history_cycles : partial_history_cycles;