projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad9a937
)
btrfs: remove unneeded return variable in btrfs_lookup_file_extent
author
Marcos Paulo de Souza
<mpdesouza@suse.com>
Mon, 26 Jul 2021 18:51:07 +0000
(15:51 -0300)
committer
David Sterba
<dsterba@suse.com>
Mon, 23 Aug 2021 11:19:01 +0000
(13:19 +0200)
We can return from btrfs_search_slot directly which also shows that it
follows the same return value convention.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/file-item.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/file-item.c
b/fs/btrfs/file-item.c
index
df6631e
..
2673c6b
100644
(file)
--- a/
fs/btrfs/file-item.c
+++ b/
fs/btrfs/file-item.c
@@
-233,7
+233,6
@@
int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans,
struct btrfs_path *path, u64 objectid,
u64 offset, int mod)
{
- int ret;
struct btrfs_key file_key;
int ins_len = mod < 0 ? -1 : 0;
int cow = mod != 0;
@@
-241,8
+240,8
@@
int btrfs_lookup_file_extent(struct btrfs_trans_handle *trans,
file_key.objectid = objectid;
file_key.offset = offset;
file_key.type = BTRFS_EXTENT_DATA_KEY;
- ret = btrfs_search_slot(trans, root, &file_key, path, ins_len, cow);
- return
ret
;
+
+ return
btrfs_search_slot(trans, root, &file_key, path, ins_len, cow)
;
}
/*