mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
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:
parent
f8771fa67d
commit
d9c057ab0b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user