Skip to content

Commit

Permalink
JFS: FIx one more plain integer as NULL pointer warning
Browse files Browse the repository at this point in the history
Signed-off-by: Dave Kleikamp <shaggy@linux.vnet.ibm.com>
  • Loading branch information
Dave Kleikamp committed Jan 3, 2008
1 parent 09aaa74 commit da8a41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jfs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit da8a41d

Please sign in to comment.