aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ntfs/namei.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2018-10-12 22:46:50 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2018-10-12 22:46:50 -0400
commit995f608e7a349c837d6c0b3ffa7d1a94d01f7203 (patch)
tree86ed562ba72691b7ce1fff3e3f884115586f2081 /fs/ntfs/namei.c
parente884bce1d9321047ea002b97699e4f7a74c3fae3 (diff)
ntfs: don't open-code ERR_CAST
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ntfs/namei.c')
-rw-r--r--fs/ntfs/namei.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ntfs/namei.c b/fs/ntfs/namei.c
index 4690cd75d8d7..3986c7a1f6a8 100644
--- a/fs/ntfs/namei.c
+++ b/fs/ntfs/namei.c
@@ -312,7 +312,7 @@ static struct dentry *ntfs_get_parent(struct dentry *child_dent)
312 /* Get the mft record of the inode belonging to the child dentry. */ 312 /* Get the mft record of the inode belonging to the child dentry. */
313 mrec = map_mft_record(ni); 313 mrec = map_mft_record(ni);
314 if (IS_ERR(mrec)) 314 if (IS_ERR(mrec))
315 return (struct dentry *)mrec; 315 return ERR_CAST(mrec);
316 /* Find the first file name attribute in the mft record. */ 316 /* Find the first file name attribute in the mft record. */
317 ctx = ntfs_attr_get_search_ctx(ni, mrec); 317 ctx = ntfs_attr_get_search_ctx(ni, mrec);
318 if (unlikely(!ctx)) { 318 if (unlikely(!ctx)) {