lkml.org 
[lkml]   [2022]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sctp: sm statefuns: Remove unnecessary ‘NULL’ values from Pointer
Date
The packet pointer is assigned first. It does not need to initialize the
assignment.

Signed-off-by: Li zeming <zeming@nfschina.com>
---
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
\
 
 \ /
  Last update: 2022-11-15 02:55    [W:0.039 / U:0.608 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site