From nobody Fri Apr 3 00:51:21 2026 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38BCAC32771 for ; Mon, 19 Sep 2022 02:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229602AbiISCGZ (ORCPT ); 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-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" 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 =3D NULL, *p_prod_idx, *p_prod_page_idx; + void *p_ret, *p_prod_idx, *p_prod_page_idx; =20 if (is_chain_u16(p_chain)) { if ((p_chain->u.chain16.prod_idx & --=20 2.18.2