From: Al Viro Date: Sat, 13 Oct 2018 02:46:50 +0000 (-0400) Subject: ntfs: don't open-code ERR_CAST X-Git-Tag: rel_imx_5.10.35_2.0.0-somdevices.0~5984^2~6 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=995f608e7a349c837d6c0b3ffa7d1a94d01f7203;p=linux.git ntfs: don't open-code ERR_CAST Signed-off-by: Al Viro --- 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) /* Get the mft record of the inode belonging to the child dentry. */ mrec = map_mft_record(ni); if (IS_ERR(mrec)) - return (struct dentry *)mrec; + return ERR_CAST(mrec); /* Find the first file name attribute in the mft record. */ ctx = ntfs_attr_get_search_ctx(ni, mrec); if (unlikely(!ctx)) {