2005-01-31 13:05:15

by Armin Schindler

[permalink] [raw]
Subject: [PATCH 2/3] 2.6 ISDN Eicon driver: vfree()

Removed check for NULL pointer before doing vfree(), it's done in
vfree().

Signed-off-by: Armin Schindler <[email protected]>


diff -Nur linux.orig/drivers/isdn/hardware/eicon/platform.h linux/drivers/isdn/hardware/eicon/platform.h
--- linux.orig/drivers/isdn/hardware/eicon/platform.h 2005-01-31 12:35:17.644106966 +0100
+++ linux/drivers/isdn/hardware/eicon/platform.h 2005-01-31 13:26:14.640422282 +0100
@@ -1,4 +1,4 @@
-/* $Id: platform.h,v 1.37.4.2 2004/08/28 20:03:53 armin Exp $
+/* $Id: platform.h,v 1.37.4.6 2005/01/31 12:22:20 armin Exp $
*
* platform.h
*
@@ -195,9 +195,7 @@
}
static __inline__ void diva_os_free (unsigned long flags, void* ptr)
{
- if (ptr) {
- vfree(ptr);
- }
+ vfree(ptr);
}

/*