On 04/13/16 11:20, Sepherosa Ziehau wrote:
        bzero(sc, sizeof(hn_softc_t));

Hi,

According to:

https://svnweb.freebsd.org/base/head/sys/kern/subr_bus.c?revision=297776&view=markup#l2763

It is safe to assume that the memory you get is already zero'ed.

The additional bzero() in your attach routine seems redundant.

--HPS
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to