Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit d5c15fcd authored by Gao Xiang's avatar Gao Xiang Committed by Michael Bestas
Browse files

erofs: avoid unnecessary variable `err'



variable `err' in z_erofs_submit_queue() isn't useful
here, remove it instead.

Reviewed-by: default avatarChao Yu <yuchao0@huawei.com>
Link: https://lore.kernel.org/r/20200919072730.24989-1-hsiangkao@redhat.com


Change-Id: I67b4100f93351faa690d493a6d5360e07ba41ec2
Signed-off-by: default avatarGao Xiang <hsiangkao@redhat.com>
parent 8e64e25a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -1191,7 +1191,6 @@ static void z_erofs_submit_queue(struct super_block *sb,

		do {
			struct page *page;
			int err;

			page = pickup_page_for_submission(pcl, i++, pagepool,
							  MNGD_MAPPING(sbi),
@@ -1217,8 +1216,7 @@ static void z_erofs_submit_queue(struct super_block *sb,
				++nr_bios;
			}

			err = bio_add_page(bio, page, PAGE_SIZE, 0);
			if (err < PAGE_SIZE)
			if (bio_add_page(bio, page, PAGE_SIZE, 0) < PAGE_SIZE)
				goto submit_bio_retry;

			last_index = cur;