Skip to contentSkip to conversation

vfree NULL check fixup for sb_card

PATCH In review Jesper Juhl 1 participant 1 message Feb 24, 2006 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 6/13 vfree NULL check fixup for sb_card

There's no need to check the vfree() argument for NULL.

---

 sound/oss/sb_card.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
sound/oss/sb_card.c +2 -4
@@ -337,10 +337,8 @@ static void __exit sb_exit(void)
 	pnp_unregister_card_driver(&sb_pnp_driver);
 #endif
 
-	if (smw_free) {
-		vfree(smw_free);
-		smw_free = NULL;
-	}
+	vfree(smw_free);
+	smw_free = NULL;
 }
 
 module_init(sb_init);