Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6115185rwn; Mon, 12 Sep 2022 21:54:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR5zVrjnvTiPZkrXqDlAE3NeX4jCdFicDs9L9ZoW327YT5js+53jVRRUDtIs+IGXRFCCbsql X-Received: by 2002:a50:fc93:0:b0:44d:c809:8158 with SMTP id f19-20020a50fc93000000b0044dc8098158mr25342991edq.365.1663044843925; Mon, 12 Sep 2022 21:54:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663044843; cv=none; d=google.com; s=arc-20160816; b=ZDv8rRTcBsO1PkcyxnyER9DDJpN+mCujtmZuViYwJ0t5UDCjNnOs+4WIPPazGjSyFL ynPXeTKrvpe2eW6DdbJCBABBFFaYwS3qLageFPPrTJYDT/0zU/WyhbjFCsxlXkOo+W+9 v8qLsnc50IqzrP2lOY9YoMPQWDtlt7zVSWrkEsLRvr/TEmsktGgVOlc1X0xIZzNpfbu7 xRDl7Dlw2zcve3Sn0sTd/Hm2iabesft2+CAeqaAK0NM27JuVcMj9YIWVjQT1CsqW1myN aqojejwMIjYQZmEXcSLSRwZXDjEYeNdKEcYLGahnrrxSrK8KEX5uYuRrsl7oNgnEIs1v Ps8Q== 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=AXl/xltl2226KYfAjs4qDLvM/+RNt5NGtg9vJ1xrGTk=; b=dP0udTCopcyyDS/L6pKSntR0HKUdpgf6ZJoChJdyqrNDdMlQZnPpfgcA7de58kWfXi TX8lpkksBCankfxyMRAipalI/nRr6S9/BZuCV+P3pLKmA6gTcd0kvN6Znk/+qoHE0wLN 69v4V9Wssv2H0BUTtnscB0lozxHuzI0h6L/pRBsvp/OCuY1XC5wVhPeTB/nsJz6sMlNS prue/BYOS5DT5GMhW72eH3iQP6xbyoyWATDfNJanCJ4Efa46UjA8XRqTqQp/wz8pQrb1 DHnkMT+OWcn9x+DbM4WKLDIlMGuIXiJohTnbYGU+sjBqVHnlmKeWyCjDYNszj6ZyoGFl QAYA== 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 k28-20020a508adc000000b0044ed33f008dsi8859687edk.423.2022.09.12.21.53.39; Mon, 12 Sep 2022 21:54:03 -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 S229956AbiIMDzl (ORCPT + 99 others); Mon, 12 Sep 2022 23:55:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47318 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbiIMDzj (ORCPT ); Mon, 12 Sep 2022 23:55:39 -0400 Received: from mail.nfschina.com (unknown [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 0A31143E61; Mon, 12 Sep 2022 20:55:37 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 6CDFC1E80D89; Tue, 13 Sep 2022 11:53:31 +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 m0azm_8-P2zr; Tue, 13 Sep 2022 11:53:28 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 905631E80D80; Tue, 13 Sep 2022 11:53:28 +0800 (CST) From: Li zeming To: aelior@marvell.com, manishc@marvell.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] qed: Remove unnecessary '0' values from prod Date: Tue, 13 Sep 2022 11:55:30 +0800 Message-Id: <20220913035530.258266-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 prod variable is assigned first, it does not need to be initialized. Signed-off-by: Li zeming --- include/linux/qed/qed_if.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/qed/qed_if.h b/include/linux/qed/qed_if.h index 6dc4943d8aec..f542d9946444 100644 --- a/include/linux/qed/qed_if.h +++ b/include/linux/qed/qed_if.h @@ -1423,7 +1423,7 @@ struct qed_sb_cnt_info { static inline u16 qed_sb_update_sb_idx(struct qed_sb_info *sb_info) { - u32 prod = 0; + u32 prod; u16 rc = 0; prod = le32_to_cpu(sb_info->sb_virt->prod_index) & -- 2.18.2