[PATCH 3/4] JFS: FIx one more plain integer as NULL pointer warning

[email protected] Thu, 20 Dec 2007 14:03:17 -0600 (CST)
Newsgroups gmane.comp.file-systems.jfs.patches
Message-ID <[email protected]>
JFS: FIx one more plain integer as NULL pointer warning

Signed-off-by: Dave Kleikamp <[email protected]>

---
commit 5bee3591ef512246826f1d872c22128cecd66171
tree 7a13b1da50cae1de15fdddd651f30230b615f2eb
parent 8d827f0cb172a48f440aaebe9e7c594815e9e8b8
author Dave Kleikamp <[email protected]> Tue, 13 Nov 2007 22:25:41 -0600
committer Dave Kleikamp <[email protected]> Tue, 13 Nov 2007 22:25:41 -0600

 fs/jfs/namei.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index 55e49c0..e146be6 100644
--- a/fs/jfs/namei.c
+++ b/fs/jfs/namei.c
@@ -1103,7 +1103,7 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
 	 */
 	rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP);
 	if (!rc) {
-		if ((new_ip == 0) || (ino != new_ip->i_ino)) {
+		if ((!new_ip) || (ino != new_ip->i_ino)) {
 			rc = -ESTALE;
 			goto out3;
 		}

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/