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: Denis Kirjanov <kirjanov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
kirjanov@gmail.com 2009-12-18 10:56:21 +03:00 committed by Greg Kroah-Hartman
parent f8771fa67d
commit d9c057ab0b

View File

@ -3971,10 +3971,8 @@ static void slic_debug_adapter_create(struct adapter *adapter)
static void slic_debug_adapter_destroy(struct adapter *adapter)
{
if (adapter->debugfs_entry) {
debugfs_remove(adapter->debugfs_entry);
adapter->debugfs_entry = NULL;
}
debugfs_remove(adapter->debugfs_entry);
adapter->debugfs_entry = NULL;
}
static void slic_debug_card_create(struct sliccard *card)