Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1983056rwb; Sun, 18 Sep 2022 19:18:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6Pz+wNPxr1q8QKEISr87K0itHXp0g8dIERwO6L9n/9r0cGzyP+YezKWBnsXbq3P+EjlBR+ X-Received: by 2002:a17:902:be01:b0:176:8bc3:b379 with SMTP id r1-20020a170902be0100b001768bc3b379mr11331825pls.109.1663553910199; Sun, 18 Sep 2022 19:18:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663553910; cv=none; d=google.com; s=arc-20160816; b=At3EVSHwmgXEnXJis6MnKbFzA/Z4VD23i8SIjKRO8dWFBifpEydC00jlnSCRRhGzZm 0Lzr2KQ88VEBu3JVgYhClkNdQR5YrxvquOlEaWGYNLDIUY9KqPqG4Tc+cf82aefW21xK FtgXFsZQnXT+UB1iwQt/t6SBF0PnYJBznMWGvgPFFWvD/C2noclsbkrgT971mFumDJiP U4B1Mhhs7rEDvsJbY929etaDtL5ftPBVrdh8yzTWhMLGLVmykMu5uULvIIbRp52HlMRx 1TCuat6jbAgaToFdxV6OMTtlsOc3jofGNMtsPvyXlmOUus/TK706CyPgrAb7Hg+qJ24v GQig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=Co7ZwNGoiULgcy+UVxRDSPpg9YMhaEKYzRvaUJ4SweU=; b=mIFgn8BQxFObUDXSDiCV+ys00fyFgQ8Ec+qXsG4IT3bbwI21tmfm4EtRW5APO64om/ R0iGUdFCIsC002AlWEiwxvTnwJT2Qfhbyt2/u8erB5lRA7YDzEehwCsSskkMr3HircXR 52EgFFXvBVywoET7G07qBsfFCo9KnhNRGYlhR9P7tvLdWAz/YFCsLqPf3ZNtPvNxOLKf XQt0LertHURC2fb5K/6ahEVBlPZqpNFZ7L1SuD4UsWJJa9yvTLhoGGV3WLgBmmsxFF70 TaIn2cQOmEUWpXY6qA/e+ohh9LYfZY2uEJSUajcqOgYW3wWoFxzV6G2oPq09bjI1VFp3 A05A== 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 q5-20020a056a00084500b005460624688esi21574387pfk.148.2022.09.18.19.18.18; Sun, 18 Sep 2022 19:18:30 -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 S229579AbiISCGZ (ORCPT + 99 others); Sun, 18 Sep 2022 22:06:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229553AbiISCGX (ORCPT ); Sun, 18 Sep 2022 22:06:23 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4172913D17; Sun, 18 Sep 2022 19:06:21 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id D18B01E80D75; Mon, 19 Sep 2022 10:03:23 +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 AqqNgteNPcpr; Mon, 19 Sep 2022 10:03:21 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 526131E80CAB; Mon, 19 Sep 2022 10:03:20 +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] =?UTF-8?q?linux:=20qed:=20Remove=20unnecessary=20?= =?UTF-8?q?=E2=80=98NULL=E2=80=99=20values=20values=20from=20Pointer?= Date: Mon, 19 Sep 2022 10:06:14 +0800 Message-Id: <20220919020614.3615-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE 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 pointer p_ret is first assigned and finally used as the return value of the function. Signed-off-by: Li zeming --- include/linux/qed/qed_chain.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/qed/qed_chain.h b/include/linux/qed/qed_chain.h index a84063492c71..f52c589e6dfa 100644 --- a/include/linux/qed/qed_chain.h +++ b/include/linux/qed/qed_chain.h @@ -368,7 +368,7 @@ static inline void qed_chain_return_produced(struct qed_chain *p_chain) */ static inline void *qed_chain_produce(struct qed_chain *p_chain) { - void *p_ret = NULL, *p_prod_idx, *p_prod_page_idx; + void *p_ret, *p_prod_idx, *p_prod_page_idx; if (is_chain_u16(p_chain)) { if ((p_chain->u.chain16.prod_idx & -- 2.18.2