dm bufio: simplify the return expression of skip_metadata()
PATCH 1/1 dm bufio: simplify the return expression of skip_metadata()
Simplify the return expression.
Signed-off-by Qinglang Miao <[email protected]>
--- drivers/md/dm-snap-persistent.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
drivers/md/dm-snap-persistent.c +1 -6
@@ -284,16 +284,11 @@ static void skip_metadata(struct pstore *ps)*/ static int area_io (struct pstore *ps,int op,int op_flags) { -int r;chunk_t chunk; chunk =area_location (ps, ps->current_area); - r =chunk_io (ps, ps->area, chunk, op, op_flags,0 ); -if (r) -return r; - -return 0 ; +return chunk_io (ps, ps->area, chunk, op, op_flags,0 ); }static void zero_memory_area (struct pstore *ps)
Signature · 1 line
2.23.0