Page MenuHomeFreeBSD

wtap: remove unused variable and bzero
ClosedPublic

Authored by enweiwu on Jun 28 2022, 9:09 AM.
Referenced Files
Unknown Object (File)
Fri, Oct 25, 1:55 PM
Unknown Object (File)
Sep 28 2024, 12:29 AM
Unknown Object (File)
Sep 27 2024, 5:38 PM
Unknown Object (File)
Sep 27 2024, 5:09 PM
Unknown Object (File)
Sep 27 2024, 5:42 AM
Unknown Object (File)
Sep 26 2024, 2:17 AM
Unknown Object (File)
Sep 10 2024, 7:18 PM
Unknown Object (File)
Sep 7 2024, 11:13 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 Skipped
Unit
Tests Skipped

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".