projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5889335
)
net: Remove unnecessary NULL check in scm_destroy().
author
David S. Miller
<davem@davemloft.net>
Mon, 24 Sep 2012 19:52:33 +0000
(15:52 -0400)
committer
David S. Miller
<davem@davemloft.net>
Mon, 24 Sep 2012 19:52:33 +0000
(15:52 -0400)
All callers provide a non-NULL scm argument.
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/scm.h
patch
|
blob
|
blame
|
history
diff --git
a/include/net/scm.h
b/include/net/scm.h
index 456695f5cbc4004be9b10b3a676aab080dab2634..975cca01048bee3b7da9017725654053921250ae 100644
(file)
--- 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);
}