mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-25 07:41:42 +01:00
lib: serial: Fix coding style issues
This fixes various coding style issues found in the serial codes. No functional changes. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Anup Patel <anup.patel@wdc.com>
This commit is contained in:
@@ -48,7 +48,7 @@ static inline unsigned int uart_min_clk_divisor(uint64_t in_freq,
|
|||||||
uint64_t max_target_hz)
|
uint64_t max_target_hz)
|
||||||
{
|
{
|
||||||
uint64_t quotient = (in_freq + max_target_hz - 1) / (max_target_hz);
|
uint64_t quotient = (in_freq + max_target_hz - 1) / (max_target_hz);
|
||||||
// Avoid underflow
|
/* Avoid underflow */
|
||||||
if (quotient == 0) {
|
if (quotient == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user