After 3e404b8c53d, cam_getccb(3) clears the returned CCB, making
a number of calls to CCB_CLEAR_ALL_EXCEPT_HDR(3) unnecessary.
Details
- Reviewers
imp - Commits
- rG22267215d66d: camcontrol(8): remove unnecessary CCB zeroing
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 37357 Build 34246: arc lint + arc unit
Event Timeline
All but one of these are easily seen to be redundant now.
sbin/camcontrol/camcontrol.c | ||
---|---|---|
1829 | This one I'm not sure of since I've not traced all callers of ata_do_pass_16 |
I'd commit all but the flagged one.
The flagged one, if someone can confirm my code tracing, changes things. Don't know if the change is a breakage or just a benign change, but I think it requires additional study (and maybe a comment about why it's needed, or the flow needs to change to call it after the flagged ata_do_identify, but even then I've not chased down all branches.
sbin/camcontrol/camcontrol.c | ||
---|---|---|
1829 | I'm pretty sure this isn't good. atahpa() gets a ccb |