Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6357958rwb; Mon, 14 Nov 2022 19:15:59 -0800 (PST) X-Google-Smtp-Source: AA0mqf793Ii4bWFh4rC15BglMWBPXM5Ptw3jR38WsB4Opb5cE36/KEt0olzq3LtRh8hCM/Gvakwe X-Received: by 2002:aa7:dad8:0:b0:467:3ea1:acdd with SMTP id x24-20020aa7dad8000000b004673ea1acddmr13696180eds.96.1668482158728; Mon, 14 Nov 2022 19:15:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668482158; cv=none; d=google.com; s=arc-20160816; b=tMSVJPrmv1+S80k2rEOowFMOWZcqa6z05TbvkAKlWKugOD06kDds5djpFuAp6a6F7Z 2onWr2ELScz8mNd6oHDBYddPFqvaxbygKvkAGvH4SMKHxjI6yvLU3T3L8R+qGIP7Vp1Y 2QE7rDAzkworr5CENqtOfhjrjNIIt/c6y0TkiRDmT/lgypJDiy0XtwKw84HrirX3ttUK V6bJ/pFjI1jo4DD30r+3fxdgqRu31674nC4CGo34yAAZrSWWipohvWplXEHU8DvOLrxx 5Q8csP2+xbdhgH5ueFp64QcQcfdGwv0p6DK+1yaL2Iu0wLgCk9cOjkpC6f60WB8/lPpk DomQ== 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=qC3g5ikpq+mBZM/VTqZWi27RH6anKrnDhkGv0oG2sEY=; b=DC9i2EPLA1vlBjmBR7YImhIrQBkmWQB3bmEmHrT3PclfPwMWgS1d5uKGIaC9Uqp9dr IBx5hI3A6dyTRSDW4YQGDDtkN4i7mRyY7cbng78Rx9eDX5lC9S3ufJhHTGhIPTBTNHqW UQ9b0XTgJ0MPLgH5kRPsUSLWYBc9gICNdAHVA5C7zlH2GAQt9PdRgR0VzrPUCVVElcBC 1gPp139P18ItsRvAXMB0cY/3+Pgg1MunNDI4beBVbHFkWAz2d6II2dPlJERt4MZUDP+x OYoffKqSy2r6DM6ncI3gyRhU28+5lFJzM5Vk+Ya/+ScTgZsZhapBRrzCQIg5xFrIaht/ fGyg== 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 hb38-20020a170907162600b007ae670adb82si8676926ejc.902.2022.11.14.19.15.36; Mon, 14 Nov 2022 19:15:58 -0800 (PST) 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 S232295AbiKOBzf (ORCPT + 88 others); Mon, 14 Nov 2022 20:55:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231589AbiKOBzd (ORCPT ); Mon, 14 Nov 2022 20:55:33 -0500 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2F07717421; Mon, 14 Nov 2022 17:55:32 -0800 (PST) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id C69E61E80DC8; Tue, 15 Nov 2022 09:52:33 +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 Tyl9YcZ3otWi; Tue, 15 Nov 2022 09:52: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 5C2F91E80DC6; Tue, 15 Nov 2022 09:52:28 +0800 (CST) From: Li zeming To: vyasevich@gmail.com, nhorman@tuxdriver.com, marcelo.leitner@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: linux-sctp@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] =?UTF-8?q?sctp:=20sm=5Fstatefuns:=20Remove=20unnecessary?= =?UTF-8?q?=20=E2=80=98NULL=E2=80=99=20values=20from=20Pointer?= Date: Tue, 15 Nov 2022 09:55:08 +0800 Message-Id: <20221115015508.3054-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 packet pointer is assigned first. It does not need to initialize the assignment. Signed-off-by: Li zeming --- net/sctp/sm_statefuns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/sctp/sm_statefuns.c b/net/sctp/sm_statefuns.c index f6ee7f4040c1..714605746fee 100644 --- a/net/sctp/sm_statefuns.c +++ b/net/sctp/sm_statefuns.c @@ -3781,7 +3781,7 @@ static enum sctp_disposition sctp_sf_shut_8_4_5( void *arg, struct sctp_cmd_seq *commands) { - struct sctp_packet *packet = NULL; + struct sctp_packet *packet; struct sctp_chunk *chunk = arg; struct sctp_chunk *shut; -- 2.18.2