提交 2a6c8c79 编写于 作者: D David S. Miller

net: Remove unnecessary NULL check in scm_destroy().

All callers provide a non-NULL scm argument.
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 5889335c
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册