projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b7d687
)
btrfs: backref: Use ERR_CAST to return error code
author
Misono Tomohiro
<misono.tomohiro@jp.fujitsu.com>
Thu, 26 Jul 2018 01:22:58 +0000
(10:22 +0900)
committer
David Sterba
<dsterba@suse.com>
Mon, 6 Aug 2018 11:13:01 +0000
(13:13 +0200)
Use ERR_CAST() instead of void * to make meaning clear.
Signed-off-by: Misono Tomohiro <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/backref.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/backref.c
b/fs/btrfs/backref.c
index 60f4afa8ecbc0273c855e365437b09638d16e93c..ae750b1574a25973978f30ed9398c624e7893bc0 100644
(file)
--- a/
fs/btrfs/backref.c
+++ b/
fs/btrfs/backref.c
@@
-2225,7
+2225,7
@@
struct inode_fs_paths *init_ipath(s32 total_bytes, struct btrfs_root *fs_root,
fspath = init_data_container(total_bytes);
if (IS_ERR(fspath))
- return
(void *)fspath
;
+ return
ERR_CAST(fspath)
;
ifp = kmalloc(sizeof(*ifp), GFP_KERNEL);
if (!ifp) {