diff options
author | Dan Carpenter <error27@gmail.com> | 2011-01-10 12:10:50 -0500 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2011-01-10 12:10:50 -0500 |
commit | f9a62d090cf47fae2fe6f6bd8eb9f24482573fd8 (patch) | |
tree | 018b35b669705055963d09c7e2a07c90cc36ade5 /fs/ext4 | |
parent | 13195184a8bc119dbd2f905db325a453047971cb (diff) |
ext4: use IS_ERR() to check for errors in ext4_error_file
d_path() returns an ERR_PTR and it doesn't return NULL. This is in
ext4_error_file() and no one actually calls ext4_error_file().
Signed-off-by: Dan Carpenter <error27@gmail.com>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index c228da112de0..d49e3b1ec41e 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c | |||
@@ -437,7 +437,7 @@ void ext4_error_file(struct file *file, const char *function, | |||
437 | save_error_info(inode->i_sb, function, line); | 437 | save_error_info(inode->i_sb, function, line); |
438 | va_start(args, fmt); | 438 | va_start(args, fmt); |
439 | path = d_path(&(file->f_path), pathname, sizeof(pathname)); | 439 | path = d_path(&(file->f_path), pathname, sizeof(pathname)); |
440 | if (!path) | 440 | if (IS_ERR(path)) |
441 | path = "(unknown)"; | 441 | path = "(unknown)"; |
442 | printk(KERN_CRIT | 442 | printk(KERN_CRIT |
443 | "EXT4-fs error (device %s): %s:%d: inode #%lu " | 443 | "EXT4-fs error (device %s): %s:%d: inode #%lu " |