Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6093328rwn; Mon, 12 Sep 2022 21:17:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR560yFKFiDi1PaSmSV6Wt+TOzhLZ69wn7r/53gTREtNPKYJFlEW+SjLQOWlKnApMs3BCU4C X-Received: by 2002:a17:902:720c:b0:172:a1ff:8c21 with SMTP id ba12-20020a170902720c00b00172a1ff8c21mr30037864plb.159.1663042620472; Mon, 12 Sep 2022 21:17:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663042620; cv=none; d=google.com; s=arc-20160816; b=xc124YRVYWFrrZDYcRbInkJQpGQ3alPvl+MqpISsjIdFb+xZioR4OYP0SJGL4MKWsN tnjV6ko2enM+Pxb2cQh4Vt99U3cpLUSv76nfWPFPtRuWPg3y1VxfBWNN+NMozr23wZ+c 6bJxJMkimWMeBwzhglBmn11KyyrJRqHRaa4vv7Xqg5iNXnKCc47nTjDF0ah4jLyjPUTU J3OxH7+iNyt1UN5z/tP7Ar7cHk3PTsHNMDvvnurXgEwjf8FtVIjffGruc7HbiaPiJ3xx +ztX1NJIBy/eaysMFtU1855WPKv1aj93yFLCuIxf9uIp1VychaWOAee4NvYFGthPFT4a 7tHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=y3IJCaMLhbUPbOWNL/8sDpPM660n1coSY/RwTuIPEaA=; b=E0c1Gk+xjci+dEmGGpu2q3pL3uNSX11sELVHpIP+x7av1gNkPkbULWT+cl1SPwjcNM y0jlT7hy7NfDR6SIBu+17JoWI/tIbbkhV1oUpDS0gyg0XUBpF0D8kUr9DIJgshdS/adL 0wf2jxLWS2R5uOoJkQ8WOebWuGdUNtuSXKLOdW28jldI5nobLgWSrB/ETraFc6uZt6tJ fImSaDwBYwpbSR/68jBjUdupkCpqULyG+YdPD1cnJseUxFq3YjgB05oMdseCaML35LPM Lh4E6m3fahiIwbo7NTwcxIOZ/097jCoYkVo133Gf7XGl1H/gz7UODZQE/VniIdwufj9e V+8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a056a0014c400b0052ab37ed70asi11609684pfu.57.2022.09.12.21.16.48; Mon, 12 Sep 2022 21:17:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229977AbiIMEAF (ORCPT + 99 others); Tue, 13 Sep 2022 00:00:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50090 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbiIMEAC (ORCPT ); Tue, 13 Sep 2022 00:00:02 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 574D7B1EE for ; Mon, 12 Sep 2022 21:00:01 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 598E11E80D80; Tue, 13 Sep 2022 11:57:56 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id urrVywFzYQfb; Tue, 13 Sep 2022 11:57:53 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id ABDCF1E80D74; Tue, 13 Sep 2022 11:57:53 +0800 (CST) From: Li zeming To: p.zabel@pengutronix.de Cc: linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] reset: Remove unnecessary '0' values from ret Date: Tue, 13 Sep 2022 11:59:50 +0800 Message-Id: <20220913035950.258430-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ret variable is assigned first, it does not need to be initialized. Signed-off-by: Li zeming --- include/linux/reset/bcm63xx_pmb.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/reset/bcm63xx_pmb.h b/include/linux/reset/bcm63xx_pmb.h index c77b6999518a..a6cc6df952f6 100644 --- a/include/linux/reset/bcm63xx_pmb.h +++ b/include/linux/reset/bcm63xx_pmb.h @@ -58,7 +58,7 @@ static inline int __bpcm_do_op(void __iomem *master, unsigned int addr, static inline int bpcm_rd(void __iomem *master, unsigned int addr, u32 off, u32 *val) { - int ret = 0; + int ret; ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_READ); *val = readl(master + PMB_RD_DATA); @@ -69,7 +69,7 @@ static inline int bpcm_rd(void __iomem *master, unsigned int addr, static inline int bpcm_wr(void __iomem *master, unsigned int addr, u32 off, u32 val) { - int ret = 0; + int ret; writel(val, master + PMB_WR_DATA); ret = __bpcm_do_op(master, addr, off >> 2, PMC_PMBM_WRITE); -- 2.18.2