Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a6c8c79 authored by David S. Miller's avatar David S. Miller
Browse files

net: Remove unnecessary NULL check in scm_destroy().



All callers provide a non-NULL scm argument.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5889335c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ static __inline__ void scm_destroy_cred(struct scm_cookie *scm)
static __inline__ void scm_destroy(struct scm_cookie *scm)
{
	scm_destroy_cred(scm);
	if (scm && scm->fp)
	if (scm->fp)
		__scm_destroy(scm);
}