svn commit: r297913 - in head/sys/dev/hyperv: netvsc storvsc
Sepherosa Ziehau
sephe at freebsd.org
Wed Apr 13 09:27:51 UTC 2016
Yeah, I knew, but it worth a different commit :)
On Wed, Apr 13, 2016 at 5:28 PM, Hans Petter Selasky <hps at selasky.org> wrote:
> 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
--
Tomorrow Will Never Die
More information about the svn-src-head
mailing list