patch-1.3.99 linux/fs/super.c
Next file: linux/fs/sysv/file.c
Previous file: linux/fs/nfs/nfsroot.c
Back to the patch index
Back to the overall index
-  Lines: 13
 -  Date:
Mon May  6 07:28:52 1996
 -  Orig file: 
v1.3.98/linux/fs/super.c
 -  Orig date: 
Mon Apr 29 18:05:19 1996
 
diff -u --recursive --new-file v1.3.98/linux/fs/super.c linux/fs/super.c
@@ -92,9 +92,9 @@
 	struct vfsmount *lptr;
 	char *tmp;
 
-	if ((lptr = (struct vfsmount *)
-	     kmalloc(sizeof(struct vfsmount), GFP_KERNEL)) == (struct vfsmount *)NULL)
-		return ((struct vfsmount *)NULL);
+	lptr = (struct vfsmount *)kmalloc(sizeof(struct vfsmount), GFP_KERNEL);
+        if (!lptr)
+		return NULL;
 	memset(lptr, 0, sizeof(struct vfsmount));
 
 	lptr->mnt_dev = dev;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this