Skip to content

Commit 2a6c8c7

Browse files
committed
net: Remove unnecessary NULL check in scm_destroy().
All callers provide a non-NULL scm argument. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5889335 commit 2a6c8c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/scm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static __inline__ void scm_destroy_cred(struct scm_cookie *scm)
7373
static __inline__ void scm_destroy(struct scm_cookie *scm)
7474
{
7575
scm_destroy_cred(scm);
76-
if (scm && scm->fp)
76+
if (scm->fp)
7777
__scm_destroy(scm);
7878
}
7979

0 commit comments

Comments
 (0)