You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "xiaoxiang781216 (via GitHub)" <gi...@apache.org> on 2023/09/06 17:44:13 UTC

[GitHub] [nuttx] xiaoxiang781216 commented on a diff in pull request #10495: Minor clk improvement

xiaoxiang781216 commented on code in PR #10495:
URL: https://github.com/apache/nuttx/pull/10495#discussion_r1317631071


##########
drivers/clk/clk_divider.c:
##########
@@ -297,6 +297,9 @@ static int32_t divider_get_val(uint32_t rate, uint32_t parent_rate,
   uint32_t div;
   uint32_t value;
 
+  if (rate == 0)
+    return -EINVAL;

Review Comment:
   Done.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org