提交 92c4bad7 编写于 作者: B Bart Massey 提交者: Greg Kroah-Hartman

Staging: comedi: ni_labpc_cs: removed null check from kfree

Signed-off-by: NBart Massey <bart@cs.pdx.edu>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 96233181
......@@ -272,9 +272,8 @@ static void labpc_cs_detach(struct pcmcia_device *link)
labpc_release(link);
}
/* This points to the parent local_info_t struct */
if (link->priv)
kfree(link->priv);
/* This points to the parent local_info_t struct (may be null) */
kfree(link->priv);
} /* labpc_cs_detach */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册