Commit 995f608e authored by Al Viro's avatar Al Viro

ntfs: don't open-code ERR_CAST

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e884bce1
...@@ -312,7 +312,7 @@ static struct dentry *ntfs_get_parent(struct dentry *child_dent) ...@@ -312,7 +312,7 @@ static struct dentry *ntfs_get_parent(struct dentry *child_dent)
/* Get the mft record of the inode belonging to the child dentry. */ /* Get the mft record of the inode belonging to the child dentry. */
mrec = map_mft_record(ni); mrec = map_mft_record(ni);
if (IS_ERR(mrec)) if (IS_ERR(mrec))
return (struct dentry *)mrec; return ERR_CAST(mrec);
/* Find the first file name attribute in the mft record. */ /* Find the first file name attribute in the mft record. */
ctx = ntfs_attr_get_search_ctx(ni, mrec); ctx = ntfs_attr_get_search_ctx(ni, mrec);
if (unlikely(!ctx)) { if (unlikely(!ctx)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment