git: 97d5f16c6966 - stable/14 - if_genet: Consistently use the boolean form
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 22 Jul 2025 04:05:50 UTC
The branch stable/14 has been updated by zlei:
URL: https://cgit.FreeBSD.org/src/commit/?id=97d5f16c6966e2ae261ddabe1f16a9675dedf43a
commit 97d5f16c6966e2ae261ddabe1f16a9675dedf43a
Author: Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2025-07-19 17:07:54 +0000
Commit: Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2025-07-22 04:04:51 +0000
if_genet: Consistently use the boolean form
The variable eaddr_found is declared as bool. This change improves
readability a little.
No functional change intended.
MFC after: 3 days
(cherry picked from commit 2fc051d090933203e1af6a8452cdd87a4c76ad5b)
---
sys/arm64/broadcom/genet/if_genet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/arm64/broadcom/genet/if_genet.c b/sys/arm64/broadcom/genet/if_genet.c
index 8fb46a7552f1..23fd45857d65 100644
--- a/sys/arm64/broadcom/genet/if_genet.c
+++ b/sys/arm64/broadcom/genet/if_genet.c
@@ -350,7 +350,7 @@ gen_attach(device_t dev)
}
/* If address was not found, create one based on the hostid and name. */
- if (eaddr_found == 0)
+ if (!eaddr_found)
ether_gen_addr(sc->ifp, &eaddr);
/* Attach ethernet interface */
ether_ifattach(sc->ifp, eaddr.octet);