Skip to content

Commit 6c3e485

Browse files
author
Gao Xiang
committed
erofs: avoid unnecessary variable `err'
variable `err' in z_erofs_submit_queue() isn't useful here, remove it instead. Reviewed-by: Chao Yu <yuchao0@huawei.com> Link: https://lore.kernel.org/r/20200919072730.24989-1-hsiangkao@redhat.com Signed-off-by: Gao Xiang <hsiangkao@redhat.com>
1 parent e3f78d5 commit 6c3e485

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎fs/erofs/zdata.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,6 @@ static void z_erofs_submit_queue(struct super_block *sb,
11901190

11911191
do {
11921192
struct page *page;
1193-
int err;
11941193

11951194
page = pickup_page_for_submission(pcl, i++, pagepool,
11961195
MNGD_MAPPING(sbi),
@@ -1216,8 +1215,7 @@ static void z_erofs_submit_queue(struct super_block *sb,
12161215
++nr_bios;
12171216
}
12181217

1219-
err = bio_add_page(bio, page, PAGE_SIZE, 0);
1220-
if (err < PAGE_SIZE)
1218+
if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE)
12211219
goto submit_bio_retry;
12221220

12231221
last_index = cur;

0 commit comments

Comments
 (0)