mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 20:51:44 +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,13 +226,13 @@ 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;
|
||||
}
|
||||
}
|
||||
|
||||
STATIC bool
|
||||
xlog_grant_head_wake(
|
||||
|
Loading…
Reference in New Issue
Block a user