git: 9976cff55e88 - main - rge: use C style comments instead of C++
Date: Sun, 15 Mar 2026 20:18:32 UTC
The branch main has been updated by adrian:
URL: https://cgit.FreeBSD.org/src/commit/?id=9976cff55e8897f74d970567e61512103216cf58
commit 9976cff55e8897f74d970567e61512103216cf58
Author: Christos Longros <chris.longros@gmail.com>
AuthorDate: 2026-03-15 20:09:56 +0000
Commit: Adrian Chadd <adrian@FreeBSD.org>
CommitDate: 2026-03-15 20:10:59 +0000
rge: use C style comments instead of C++
FreeBSD style(9) mandates C style comments. The initial import from
OpenBSD left several C++ style // comments in if_rge.c and if_rgevar.h.
Replace them with proper /* */ comments.
Also fix a malformed comment that mixed // with a closing */.
Signed-off-by: Christos Longros <chris.longros@gmail.com>
Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D55743
---
sys/dev/rge/if_rge.c | 4 ++--
sys/dev/rge/if_rgevar.h | 4 ----
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/sys/dev/rge/if_rge.c b/sys/dev/rge/if_rge.c
index b2f1311b4c87..e5297edfefbe 100644
--- a/sys/dev/rge/if_rge.c
+++ b/sys/dev/rge/if_rge.c
@@ -1125,7 +1125,7 @@ rge_init_locked(struct rge_softc *sc)
* causing this to be initialised both from the ioctl
* API and if_init() API.
*/
-// RGE_PRINT_ERROR(sc, "%s: called whilst running?\n", __func__);
+/* RGE_PRINT_ERROR(sc, "%s: called whilst running?\n", __func__); */
return;
}
@@ -2409,7 +2409,7 @@ rge_hash_maddr(void *arg, struct sockaddr_dl *sdl, u_int cnt)
{
uint32_t crc, *hashes = arg;
- // XXX TODO: validate this does addrlo? */
+ /* XXX TODO: validate this does addrlo? */
crc = ether_crc32_be(LLADDR(sdl), ETHER_ADDR_LEN) >> 26;
crc &= 0x3f;
diff --git a/sys/dev/rge/if_rgevar.h b/sys/dev/rge/if_rgevar.h
index 924133da45e3..6228f9ff229e 100644
--- a/sys/dev/rge/if_rgevar.h
+++ b/sys/dev/rge/if_rgevar.h
@@ -123,7 +123,6 @@ struct rge_rx {
int rge_rxq_prodidx;
int rge_rxq_considx;
-// struct if_rxring rge_rx_ring;
bus_addr_t rge_rx_list_paddr;
bus_dmamap_t rge_rx_list_map;
struct rge_rx_desc *rge_rx_list;
@@ -137,7 +136,6 @@ struct rge_queues {
void *q_ihc;
int q_index;
char q_name[16];
-// pci_intr_handle_t q_ih;
struct rge_tx q_tx;
struct rge_rx q_rx;
};
@@ -171,8 +169,6 @@ struct rge_softc {
bus_dma_tag_t sc_dmat_rx_buf;
bus_dma_tag_t sc_dmat_stats_buf;
-// pci_chipset_tag_t sc_pc;
-// pcitag_t sc_tag;
struct ifmedia sc_media; /* media info */
enum rge_mac_type rge_type;