staging: slicoss No need to check pointer in debugfs_remove()
authorkirjanov@gmail.com <kirjanov@gmail.com>
Fri, 18 Dec 2009 07:56:21 +0000 (10:56 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:28 +0000 (16:42 -0800)
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>
drivers/staging/slicoss/slicoss.c

index 41c440d35b8b21ddf6adbee3167ce5904c1faa30..96108fdb26c520c6ee785b5f895cd214a293ad84 100644 (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)