Skip to contentSkip to conversation

patch staging-slicoss-no-need-to-check-pointer-in-debugfs_remove.patch added to gregkh-2.6 tree

PATCH [email protected] 1 participant 1 message Dec 18, 2009 1 message not in the archive Staging

lore
Share & tools
lore

[email protected]

author Applied
#1 lore raw
In reply to a message not in the archive

This is a note to let you know that I've just added the patch titled

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

to my gregkh-2.6 tree. Its filename is

staging-slicoss-no-need-to-check-pointer-in-debugfs_remove.patch

This tree can be found at
http://www.kernel.org/pub/linux/kernel/people/gregkh/gregkh-2.6/patches/

Quoted 1 line

From [email protected] Fri Dec 18 10:33:42 2009

From: "Denis Kirjanov <[email protected]" <[email protected]>
Date: Fri, 18 Dec 2009 10:56:21 +0300
Subject: staging: slicoss No need to check pointer in debugfs_remove()
To: [email protected], [email protected], [email protected]
Cc: [email protected]
Message-ID: <20091218075621.GA4514@coldcone>
Content-Disposition: inline

No need to check pointer expicitly since it has been done in debugfs_remove()

---
 drivers/staging/slicoss/slicoss.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/slicoss/slicoss.c +2 -4
@@ -3971,10 +3971,8 @@ static void slic_debug_adapter_create(st
 
 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)