mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
xfs: remove redundant else for clean code
"else" is not generally useful after a return, so remove it for clean code. There is no logical changes. Signed-off-by: Zeng Heng <zengheng4@huawei.com> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Dave Chinner <david@fromorbit.com>
This commit is contained in:
parent
460281cf26
commit
5617104003
@ -226,12 +226,12 @@ xlog_ticket_reservation(
|
||||
if (head == &log->l_write_head) {
|
||||
ASSERT(tic->t_flags & XLOG_TIC_PERM_RESERV);
|
||||
return tic->t_unit_res;
|
||||
} else {
|
||||
if (tic->t_flags & XLOG_TIC_PERM_RESERV)
|
||||
return tic->t_unit_res * tic->t_cnt;
|
||||
else
|
||||
return tic->t_unit_res;
|
||||
}
|
||||
|
||||
if (tic->t_flags & XLOG_TIC_PERM_RESERV)
|
||||
return tic->t_unit_res * tic->t_cnt;
|
||||
|
||||
return tic->t_unit_res;
|
||||
}
|
||||
|
||||
STATIC bool
|
||||
|
Loading…
Reference in New Issue
Block a user