From: Dave Kleikamp Date: Wed, 14 Nov 2007 04:25:41 +0000 (-0600) Subject: JFS: FIx one more plain integer as NULL pointer warning X-Git-Tag: v2.6.25-rc1~1238^2~2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da8a41d19233c2bdcc59447aedc808fcdaabf5b7;p=linux-2.6 JFS: FIx one more plain integer as NULL pointer warning Signed-off-by: Dave Kleikamp --- diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c index d6e5ebad73..f8718de350 100644 --- a/fs/jfs/namei.c +++ b/fs/jfs/namei.c @@ -1104,7 +1104,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; }