Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp426908pxb; Tue, 3 Nov 2020 03:23:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCSQFcEfmOnnzgll10FbDO5O9vVk3XTImRd0scY+2A1dAJENqXSkOaJ4tQs8bJoafM4+6U X-Received: by 2002:a17:906:3fc1:: with SMTP id k1mr2297344ejj.287.1604402593270; Tue, 03 Nov 2020 03:23:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604402593; cv=none; d=google.com; s=arc-20160816; b=ZPrYWgQBtmXdo8wpHp2Yfy8TI7bSpMx1RZN3LV1rAyJF9Ow9No3enCzN2EpFjsqjwc OWTRTc1W+Upa4M/il873j6kVbEJuTpZQii17TRKc9b2dsOiPeGkbt7VAMikHcD8tEAeI u3tUcBGeIF/6b7G5IRddVumrjoIHy6+OGpJqpznIXUpaA0eGlWWPs7jlt5+Gav+7IRPe OpSKW+H+6DbGxhh12hCObuLKTxjzUosQnIN9Mxcy2l7Zuxjip57xz/4ZjjppN8HoMpeQ 97v3xkrUWehgPSQkBZwQNPNbzEbDaCWffVbUfVjPrgLMh1pUon7KkSxiZi4Wy9GBZoNi rWzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=v5CABtj2VEbtw41XSJEecVRFzJ2YkKaAzkXUkVrQjF8=; b=D2yYbQqeC0/iRGEygKOYv3jOlW34QAvO+mLG2iBiYd4TYpHyrJ/hlXDoQFM6g3NBEn nHnqxCVF7Tuf/J08H8KBd27CbfooCpdCktoxw24BE+xJuMfMAdY0iDceLbT2tDes5hi4 1HJA3wdsTo/wETgnDA9RYvUTXr5xPgouJOlmO2E/z+10b4ZSdbWz8gJ5GY1NzgBNOiPn OxldRhutN4ormG0WLDMl4mSWoo0WiyC7aTLvOpaix9GpoTRooO+l14P9QO7JoqW33wS5 m4PXzCkOU6W1dtpg8lxOYBm7YvHXUJjCcMeIx8ep/iY4sQeOROgH0rbM+2/vd+Zkuywx wynw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u15si14657464edt.425.2020.11.03.03.22.51; Tue, 03 Nov 2020 03:23:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728909AbgKCLUb (ORCPT + 99 others); Tue, 3 Nov 2020 06:20:31 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:7041 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728437AbgKCLUa (ORCPT ); Tue, 3 Nov 2020 06:20:30 -0500 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4CQS4p3lZ5zhbPq; Tue, 3 Nov 2020 19:20:26 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 19:20:22 +0800 From: Zou Wei To: , , , , , , CC: , , , Zou Wei Subject: [PATCH -next] clk: imx: gate2: Remove unused variable ret Date: Tue, 3 Nov 2020 19:32:14 +0800 Message-ID: <1604403134-32814-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fixes below warning reported by coccicheck: ./clk-gate2.c:57:5-8: Unneeded variable: "ret". Return "0" on line 68 Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/clk/imx/clk-gate2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk-gate2.c b/drivers/clk/imx/clk-gate2.c index 480a184..f16c401 100644 --- a/drivers/clk/imx/clk-gate2.c +++ b/drivers/clk/imx/clk-gate2.c @@ -54,7 +54,6 @@ static int clk_gate2_enable(struct clk_hw *hw) { struct clk_gate2 *gate = to_clk_gate2(hw); unsigned long flags; - int ret = 0; spin_lock_irqsave(gate->lock, flags); @@ -65,7 +64,7 @@ static int clk_gate2_enable(struct clk_hw *hw) out: spin_unlock_irqrestore(gate->lock, flags); - return ret; + return 0; } static void clk_gate2_disable(struct clk_hw *hw) -- 2.6.2