[v2,7/8] libc: Remove leftover comments

Message ID 20260620095210.2530342-8-sebastian.huber@embedded-brains.de
State New
Headers
Series Synchronize *div() implementations with FreeBSD |

Commit Message

Sebastian Huber June 20, 2026, 9:52 a.m. UTC
  From: Aymeric Wibo <obiwac@FreeBSD.org>

These comments refer to a comment in div.c which doesn't exist anymore.

Fixes:	7c7299df76e2 ("libc: Remove support for pre-C99 C standards")
Sponsored by:	Klara, Inc.
---
 newlib/libc/stdlib/imaxdiv.c | 1 -
 newlib/libc/stdlib/ldiv.c    | 2 --
 2 files changed, 3 deletions(-)
  

Patch

diff --git a/newlib/libc/stdlib/imaxdiv.c b/newlib/libc/stdlib/imaxdiv.c
index 1bb73a025..b88b4a6a5 100644
--- a/newlib/libc/stdlib/imaxdiv.c
+++ b/newlib/libc/stdlib/imaxdiv.c
@@ -29,7 +29,6 @@ 
 #include <inttypes.h>
 #include <stdint.h>
 
-/* See comments in div.c for implementation details. */
 imaxdiv_t
 imaxdiv(intmax_t numer, intmax_t denom)
 {
diff --git a/newlib/libc/stdlib/ldiv.c b/newlib/libc/stdlib/ldiv.c
index 4981e3b21..34052b6c9 100644
--- a/newlib/libc/stdlib/ldiv.c
+++ b/newlib/libc/stdlib/ldiv.c
@@ -85,8 +85,6 @@  ldiv (long num,
 {
 	ldiv_t r;
 
-	/* see div.c for comments */
-
 	r.quot = num / denom;
 	r.rem = num % denom;