mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
ntfs: don't open-code ERR_CAST
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
e884bce1d9
commit
995f608e7a
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue