Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752049AbdGRBRw (ORCPT ); Mon, 17 Jul 2017 21:17:52 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47406 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751962AbdGRBRv (ORCPT ); Mon, 17 Jul 2017 21:17:51 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org DC77B61422 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=sboyd@codeaurora.org Date: Mon, 17 Jul 2017 18:17:47 -0700 From: Stephen Boyd To: sean.wang@mediatek.com Cc: dan.carpenter@oracle.com, linux-mediatek@lists.infradead.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] clk: mediatek: fixed static checker warning in clk_cpumux_get_parent call Message-ID: <20170718011747.GO22780@codeaurora.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 670 Lines: 18 On 07/17, sean.wang@mediatek.com wrote: > From: Sean Wang > > Fixed the signedness bug returning '(-22)' on the return type as u8 with > removing the sanity checker in clk_cpumux_get_parent() since > clk_cpumux_set_parent() always ensures validity in clk_cpumux_get_parent() > got called. > > Fixes: commit 1e17de9049da ("clk: mediatek: add missing cpu mux causing Mediatek cpufreq can't work") > Reported-by: Dan Carpenter > Signed-off-by: Sean Wang > --- Applied to clk-next -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project