]> Git Repo - linux.git/commitdiff
ntfs: don't open-code ERR_CAST
authorAl Viro <[email protected]>
Sat, 13 Oct 2018 02:46:50 +0000 (22:46 -0400)
committerAl Viro <[email protected]>
Sat, 13 Oct 2018 02:46:50 +0000 (22:46 -0400)
Signed-off-by: Al Viro <[email protected]>
fs/ntfs/namei.c

index 4690cd75d8d7948a056fe899bc4600ade10b8566..3986c7a1f6a88c2b0ed421a1f6fbc45c7a68405c 100644 (file)
@@ -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)) {
This page took 0.052741 seconds and 4 git commands to generate.