提交 d9c057ab 编写于 作者: K kirjanov@gmail.com 提交者: Greg Kroah-Hartman

staging: slicoss No need to check pointer in debugfs_remove()

No need to check pointer expicitly since it has been done in debugfs_remove()
Signed-off-by: NDenis Kirjanov <kirjanov@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 f8771fa6
...@@ -3971,10 +3971,8 @@ static void slic_debug_adapter_create(struct adapter *adapter) ...@@ -3971,10 +3971,8 @@ static void slic_debug_adapter_create(struct adapter *adapter)
static void slic_debug_adapter_destroy(struct adapter *adapter) static void slic_debug_adapter_destroy(struct adapter *adapter)
{ {
if (adapter->debugfs_entry) { debugfs_remove(adapter->debugfs_entry);
debugfs_remove(adapter->debugfs_entry); adapter->debugfs_entry = NULL;
adapter->debugfs_entry = NULL;
}
} }
static void slic_debug_card_create(struct sliccard *card) static void slic_debug_card_create(struct sliccard *card)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册