aboutsummaryrefslogtreecommitdiff
path: root/fs/jfs/namei.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2007-11-13 22:16:08 -0600
committerDave Kleikamp <shaggy@linux.vnet.ibm.com>2008-01-03 13:12:10 -0600
commit09aaa749f637b19c308464c2b65a001e67c2a16c (patch)
tree9e23eb70becd952b193aad5ec0810ce894bcb026 /fs/jfs/namei.c
parenta7fe0ba7eee4f7c53077ff2bed2b581db17d00df (diff)
JFS: Remove defconfig ptr comparison to 0
Remove sparse warning: Using plain integer as NULL pointer Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
Diffstat (limited to 'fs/jfs/namei.c')
-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 4e0a8493cef..d6e5ebad739 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,
* Make sure dest inode number (if any) is what we think it is
*/
rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP);
- if (rc == 0) {
+ if (!rc) {
if ((new_ip == 0) || (ino != new_ip->i_ino)) {
rc = -ESTALE;
goto out3;