Skip to content

Commit 5808b6a

Browse files
AngryProtonCopilot
andauthored
[chg]删除冗余的else代码块
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 053f9bc commit 5808b6a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

components/drivers/block/blk_dfs.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,9 @@ static ssize_t blk_fops_write(struct dfs_file *file, const void *buf, size_t cou
182182
*pos += wsize;
183183
return wsize;
184184
}
185-
else
186-
{
187-
wsize += res * bytes_per_sector;
188-
blk_pos += res;
189-
}
185+
186+
wsize += res * bytes_per_sector;
187+
blk_pos += res;
190188
}
191189

192190
/*

0 commit comments

Comments
 (0)