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

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