projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e884bce
)
ntfs: don't open-code ERR_CAST
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 13 Oct 2018 02:46:50 +0000
(22:46 -0400)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 13 Oct 2018 02:46:50 +0000
(22:46 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ntfs/namei.c
patch
|
blob
|
history
diff --git
a/fs/ntfs/namei.c
b/fs/ntfs/namei.c
index
4690cd7
..
3986c7a
100644
(file)
--- 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)) {