Skip to content

Commit

Permalink
staging: slicoss No need to check pointer in debugfs_remove()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
kirjanov@gmail.com authored and Greg Kroah-Hartman committed Mar 4, 2010
1 parent f8771fa commit d9c057a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions drivers/staging/slicoss/slicoss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d9c057a

Please sign in to comment.