The branch main has been updated by zlei:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=2fc051d090933203e1af6a8452cdd87a4c76ad5b

commit 2fc051d090933203e1af6a8452cdd87a4c76ad5b
Author:     Zhenlei Huang <z...@freebsd.org>
AuthorDate: 2025-07-19 17:07:54 +0000
Commit:     Zhenlei Huang <z...@freebsd.org>
CommitDate: 2025-07-19 17:07:54 +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
---
 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 0602f076b257..da973a778706 100644
--- a/sys/arm64/broadcom/genet/if_genet.c
+++ b/sys/arm64/broadcom/genet/if_genet.c
@@ -349,7 +349,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);

Reply via email to