[PATCH 1/2] erofs: remove duplicate code

Bo Liu posted 2 patches 8 months, 1 week ago
There is a newer version of this series
[PATCH 1/2] erofs: remove duplicate code
Posted by Bo Liu 8 months, 1 week ago
Remove duplicate code in function z_erofs_register_pcluster()

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 fs/erofs/zdata.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/erofs/zdata.c b/fs/erofs/zdata.c
index 0671184d9cf1..5c061aaeeb45 100644
--- a/fs/erofs/zdata.c
+++ b/fs/erofs/zdata.c
@@ -725,7 +725,6 @@ static int z_erofs_register_pcluster(struct z_erofs_frontend *fe)
 	lockref_init(&pcl->lockref); /* one ref for this request */
 	pcl->algorithmformat = map->m_algorithmformat;
 	pcl->pclustersize = map->m_plen;
-	pcl->pageofs_in = pageofs_in;
 	pcl->length = 0;
 	pcl->partial = true;
 	pcl->next = fe->head;
-- 
2.31.1
Re: [PATCH 1/2] erofs: remove duplicate code
Posted by Gao Xiang 8 months, 1 week ago

On 2025/4/10 12:20, Bo Liu wrote:
> Remove duplicate code in function z_erofs_register_pcluster()
> 
> Signed-off-by: Bo Liu <liubo03@inspur.com>

Thanks for catching this, will apply it first:
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com>

Thanks,
Gao Xiang