diff options
author | David S. Miller <davem@davemloft.net> | 2012-09-24 15:52:33 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-09-24 15:52:33 -0400 |
commit | 2a6c8c7998f95b140f3d3c7ac5dce2fbd6d403e3 (patch) | |
tree | b0821a3dca420ac789627bb994ef82ca4462bfa9 | |
parent | 5889335c506bc50b03266251ac3c8711b674ba7a (diff) | |
download | linux-3.10-2a6c8c7998f95b140f3d3c7ac5dce2fbd6d403e3.tar.gz linux-3.10-2a6c8c7998f95b140f3d3c7ac5dce2fbd6d403e3.tar.bz2 linux-3.10-2a6c8c7998f95b140f3d3c7ac5dce2fbd6d403e3.zip |
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>
-rw-r--r-- | include/net/scm.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/scm.h b/include/net/scm.h index 456695f5cbc..975cca01048 100644 --- a/include/net/scm.h +++ b/include/net/scm.h @@ -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); } |