Page MenuHomeFreeBSD

wtap: remove unused variable and bzero
ClosedPublic

Authored by enweiwu on Jun 28 2022, 9:09 AM.
Referenced Files
Unknown Object (File)
Thu, Mar 19, 3:01 PM
Unknown Object (File)
Wed, Mar 18, 11:45 AM
Unknown Object (File)
Tue, Mar 17, 10:11 PM
Unknown Object (File)
Tue, Mar 10, 8:13 PM
Unknown Object (File)
Thu, Feb 26, 4:38 PM
Unknown Object (File)
Feb 20 2026, 9:10 AM
Unknown Object (File)
Jan 22 2026, 5:53 AM
Unknown Object (File)
Jan 10 2026, 4:39 PM
Subscribers

Details

Summary

bzero is not necessary because the flag M_ZERO is ORed and passed into malloc().

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jun 28 2022, 4:30 PM

Probably the commit message can be more precise. For example:

Remove store only variable and unnecessary bzero()

- Remove the variable set but not used to fix build on -CURRENT
- Remove bzero() on the space malloc'd with M_ZERO flag.

@rickywu0421_gmail.com: is this message correct?

Probably the commit message can be more precise. For example:

Remove store only variable and unnecessary bzero()

- Remove the variable set but not used to fix build on -CURRENT
- Remove bzero() on the space malloc'd with M_ZERO flag.

@rickywu0421_gmail.com: is this message correct?

Yes, correct. I think "store only" may be "store-only".