+ remove-redundant-null-checks-before-free-in-fs.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Remove redundant NULL checks before [kv]free - in fs/

has been added to the -mm tree.  Its filename is

     remove-redundant-null-checks-before-free-in-fs.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this


From: Jesper Juhl <jesper.juhl@xxxxxxxxx>

Remove redundant NULL checks before kfree for fs/

Signed-off-by: Jesper Juhl <jesper.juhl@xxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 fs/ocfs2/vote.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diff -puN fs/ocfs2/vote.c~remove-redundant-null-checks-before-free-in-fs fs/ocfs2/vote.c
--- devel/fs/ocfs2/vote.c~remove-redundant-null-checks-before-free-in-fs	2006-04-17 21:28:10.000000000 -0700
+++ devel-akpm/fs/ocfs2/vote.c	2006-04-17 21:28:10.000000000 -0700
@@ -988,9 +988,7 @@ int ocfs2_request_mount_vote(struct ocfs
 	}
 
 bail:
-	if (request)
-		kfree(request);
-
+	kfree(request);
 	return status;
 }
 
@@ -1021,9 +1019,7 @@ int ocfs2_request_umount_vote(struct ocf
 	}
 
 bail:
-	if (request)
-		kfree(request);
-
+	kfree(request);
 	return status;
 }
 
_

Patches currently in -mm which might be from jesper.juhl@xxxxxxxxx are

git-mtd.patch
small-whitespace-cleanup-for-qlogic-driver.patch
reduce-nr-of-ptr-derefs-in-fs-jffs2-summaryc.patch
voyager-no-need-to-define-bits_per_byte-when-its-already-in-typesh.patch
fix-potential-null-pointer-deref-in-gen_init_cpio.patch
debug-shared-irqs.patch
remove-redundant-null-checks-before-free-in-fs.patch
remove-redundant-null-checks-before-free-in-net.patch
remove-redundant-null-checks-before-free-in-arch.patch
remove-redundant-null-checks-before-free-in-kernel.patch
remove-redundant-null-checks-before-free-in-drivers.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux