]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Eicon driver: vfree()
authorArmin Schindler <armin@melware.de>
Wed, 2 Feb 2005 09:47:57 +0000 (01:47 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 2 Feb 2005 09:47:57 +0000 (01:47 -0800)
Removed check for NULL pointer before doing vfree(), it's done in
vfree().

Signed-off-by: Armin Schindler <armin@melware.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/isdn/hardware/eicon/platform.h

index 3e279e1166ce7bf3e4df8fae256f8c8a498ecd41..12b8ff29e97648a41fb85f90ba49605dc326a034 100644 (file)
@@ -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_malloc (unsigned long flags, unsigned long size)
 }
 static __inline__ void  diva_os_free   (unsigned long flags, void* ptr)
 {
-       if (ptr) {
-               vfree(ptr);
-       }
+       vfree(ptr);
 }
 
 /*