From patchwork Wed Apr 5 19:53:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Jui X-Patchwork-Id: 9665567 X-Patchwork-Delegate: sboyd@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 23EEB60353 for ; Wed, 5 Apr 2017 19:53:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13F0A28178 for ; Wed, 5 Apr 2017 19:53:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08DE8285A7; Wed, 5 Apr 2017 19:53:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7822628178 for ; Wed, 5 Apr 2017 19:53:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755429AbdDETxv (ORCPT ); Wed, 5 Apr 2017 15:53:51 -0400 Received: from mail-qk0-f175.google.com ([209.85.220.175]:33464 "EHLO mail-qk0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754199AbdDETxv (ORCPT ); Wed, 5 Apr 2017 15:53:51 -0400 Received: by mail-qk0-f175.google.com with SMTP id h67so20799040qke.0 for ; Wed, 05 Apr 2017 12:53:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id; bh=0qusN/BLxL81J0XBKPULY3lauPyT6jlG5Oni5olVBRY=; b=MaUWoSughZL6aJQjykMe5fPG3DcE2VVIVmcLcQQnpdP1gazpxDfcwwIlaEFzc9SuRU gZQAB6AU2zR5+ZJBCjMwvT3vqBILRiw2SSVz0VSYITW30C0D9qrBxiykfjANZYG/oCgS +4XHay7RCQUNMFQ2T77VarFbb1FR+hc9G9Nlk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0qusN/BLxL81J0XBKPULY3lauPyT6jlG5Oni5olVBRY=; b=o2BkZ0XhstFlKmrOcv1gs098IMbCGtjCUVtp4eNrWI7XsE1Zl0KNJa7n7rWEc4okDQ fEFbGboNCwhWSQOjYCUocRBZ8NjegvYpGdlexsPGcVuweubdNghvuVi4JxIijg7Z+kpv P/KbjUoa7UDp+0llazefQHCp5cD9b5Yp4gYifXtQchZ8etz/hqTaFT8cH71M6Ry98+VI CB0Z4d0UTUT+EzxVP5x2SC15tV3SRQObRi/TO45nSTAGZJVJ9b3KoXRdFM9a90ifHL7A t2Z619y9JRlfbOPYmyqfWR8ygUQteWiO/zTSXjS3oAV5lgZtUV6Ys9ZsIjHEUlA8y0VE Bplg== X-Gm-Message-State: AFeK/H2q068y8OcVeS9YLh542zaORJAM4PQ43RCYO/7oMKEBorn90PCoHQ6BQJ9vI14c9Hcs X-Received: by 10.55.184.5 with SMTP id i5mr32073796qkf.217.1491422030160; Wed, 05 Apr 2017 12:53:50 -0700 (PDT) Received: from lbrmn-lnxub44-1.ric.broadcom.com ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id z196sm14666759qkb.42.2017.04.05.12.53.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 05 Apr 2017 12:53:49 -0700 (PDT) From: Ray Jui To: Michael Turquette , Stephen Boyd Cc: David Binderman , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Ray Jui Subject: [PATCH] clk: iproc: Remove redundant check Date: Wed, 5 Apr 2017 12:53:37 -0700 Message-Id: <1491422017-24421-1-git-send-email-ray.jui@broadcom.com> X-Mailer: git-send-email 2.1.4 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the redundant check of 'rate' in the if statement of the 'pll_set_rate' function Reported-by: David Binderman Signed-off-by: Ray Jui Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support") --- drivers/clk/bcm/clk-iproc-pll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-iproc-pll.c b/drivers/clk/bcm/clk-iproc-pll.c index e04634c..2d61893 100644 --- a/drivers/clk/bcm/clk-iproc-pll.c +++ b/drivers/clk/bcm/clk-iproc-pll.c @@ -277,7 +277,7 @@ static int pll_set_rate(struct iproc_clk *clk, unsigned int rate_index, if (rate >= VCO_LOW && rate < VCO_HIGH) { ki = 4; kp_index = KP_BAND_MID; - } else if (rate >= VCO_HIGH && rate && rate < VCO_HIGH_HIGH) { + } else if (rate >= VCO_HIGH && rate < VCO_HIGH_HIGH) { ki = 3; kp_index = KP_BAND_HIGH; } else if (rate >= VCO_HIGH_HIGH && rate < VCO_MAX) {