From c64c910955a50f79fc7127a17e1b0998cef6dfd0 Mon Sep 17 00:00:00 2001 From: morris Date: Mon, 29 Apr 2024 14:21:17 +0800 Subject: [PATCH] fix(ldo): remove logically dead code --- components/hal/esp32p4/include/hal/ldo_ll.h | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/components/hal/esp32p4/include/hal/ldo_ll.h b/components/hal/esp32p4/include/hal/ldo_ll.h index d470107d5c..ff940ad9d5 100644 --- a/components/hal/esp32p4/include/hal/ldo_ll.h +++ b/components/hal/esp32p4/include/hal/ldo_ll.h @@ -123,18 +123,6 @@ static inline void ldo_ll_set_output_voltage_mv(int ldo_id, int voltage_mv) mul = 7; dref = 15; } - if (mul > 7) { - mul = 7; - } - if (mul < 0) { - mul = 0; - } - if (dref > 15) { - dref = 15; - } - if (dref < 0) { - dref = 0; - } /** * tieh_sel: * - 0: tieh;