summaryrefslogtreecommitdiffstats
path: root/fs/jfs
diff options
context:
space:
mode:
authorDave Kleikamp <shaggy@linux.vnet.ibm.com>2007-11-14 05:25:41 +0100
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2008-01-03 20:12:16 +0100
commitda8a41d19233c2bdcc59447aedc808fcdaabf5b7 (patch)
treef6c0c32ff4ecaa1f657d6191979e589573b52f82 /fs/jfs
parentJFS: Remove defconfig ptr comparison to 0 (diff)
downloadlinux-da8a41d19233c2bdcc59447aedc808fcdaabf5b7.tar.xz
linux-da8a41d19233c2bdcc59447aedc808fcdaabf5b7.zip
JFS: FIx one more plain integer as NULL pointer warning
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs')
-rw-r--r--fs/jfs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/jfs/namei.c b/fs/jfs/namei.c
index d6e5ebad739a..f8718de3505e 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;
}