Author: Markus Elfring <email@example.com>
The kfree() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.
This issue was detected by using the Coccinelle software.
Signed-off-by: Markus Elfring
Acked-By: Neil Horman
Signed-off-by: David S. Miller
net/sctp/associola.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index 26d06db..197c3f5 100644
@@ -391,8 +391,7 @@ void sctp_association_free(struct sctp_association *asoc)
/* Free pending address space being deleted */
- if (asoc->asconf_addr_del_pending != NULL)
/* AUTH - Free the endpoint shared keys */