Page MenuHomeFreeBSD

wtap: remove unused variable and bzero
ClosedPublic

Authored by enweiwu on Jun 28 2022, 9:09 AM.
Referenced Files
F115684263: D35624.diff
Sun, Apr 27, 2:44 AM
Unknown Object (File)
Sat, Apr 12, 11:45 PM
Unknown Object (File)
Fri, Apr 11, 2:12 PM
Unknown Object (File)
Feb 24 2025, 9:27 PM
Unknown Object (File)
Jan 24 2025, 5:37 PM
Unknown Object (File)
Jan 18 2025, 5:56 PM
Unknown Object (File)
Jan 17 2025, 10:30 PM
Unknown Object (File)
Jan 10 2025, 8:08 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".