Skip to content

Commit

Permalink
net: Remove unnecessary NULL check in scm_destroy().
Browse files Browse the repository at this point in the history
All callers provide a non-NULL scm argument.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 24, 2012
1 parent 5889335 commit 2a6c8c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/net/scm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 2a6c8c7

Please sign in to comment.