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;