mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 15:47:36 +00:00
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>
This commit is contained in:
parent
e3f78d5e7e
commit
6c3e485ea3
1 changed files with 1 additions and 3 deletions
|
@ -1190,7 +1190,6 @@ static void z_erofs_submit_queue(struct super_block *sb,
|
||||||
|
|
||||||
do {
|
do {
|
||||||
struct page *page;
|
struct page *page;
|
||||||
int err;
|
|
||||||
|
|
||||||
page = pickup_page_for_submission(pcl, i++, pagepool,
|
page = pickup_page_for_submission(pcl, i++, pagepool,
|
||||||
MNGD_MAPPING(sbi),
|
MNGD_MAPPING(sbi),
|
||||||
|
@ -1216,8 +1215,7 @@ static void z_erofs_submit_queue(struct super_block *sb,
|
||||||
++nr_bios;
|
++nr_bios;
|
||||||
}
|
}
|
||||||
|
|
||||||
err = bio_add_page(bio, page, PAGE_SIZE, 0);
|
if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE)
|
||||||
if (err < PAGE_SIZE)
|
|
||||||
goto submit_bio_retry;
|
goto submit_bio_retry;
|
||||||
|
|
||||||
last_index = cur;
|
last_index = cur;
|
||||||
|
|
Loading…
Reference in a new issue