Skip to content

Commit da8a41d

Browse files
author
Dave Kleikamp
committed
JFS: FIx one more plain integer as NULL pointer warning
Signed-off-by: Dave Kleikamp <[email protected]>
1 parent 09aaa74 commit da8a41d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/jfs/namei.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ static int jfs_rename(struct inode *old_dir, struct dentry *old_dentry,
11041104
*/
11051105
rc = dtSearch(new_dir, &new_dname, &ino, &btstack, JFS_LOOKUP);
11061106
if (!rc) {
1107-
if ((new_ip == 0) || (ino != new_ip->i_ino)) {
1107+
if ((!new_ip) || (ino != new_ip->i_ino)) {
11081108
rc = -ESTALE;
11091109
goto out3;
11101110
}

0 commit comments

Comments
 (0)