tlan: Code cleanup: checkpatch.pl is relatively happy now.
Subsystems (2)
Commit c659c38b279657 "tlan: Code cleanup: checkpatch.pl is relatively happy now." includes the following change without explanation.
- if ( ( head_list->cStat & TLAN_CSTAT_READY ) == TLAN_CSTAT_READY ) {
+ if (head_list->c_stat & TLAN_CSTAT_READY) {
Was this a bug fix or a bug introduce?
regards,
dan carpenter
Hi Dan,
Quoted 7 lines · Dan Carpenter
Commit
c659c38b279657"tlan: Code cleanup: checkpatch.pl is relatively happy now." includes the following change without explanation.(quoted diff) +1
-1- if ( ( head_list->cStat& TLAN_CSTAT_READY ) == TLAN_CSTAT_READY ) { + if (head_list->c_stat& TLAN_CSTAT_READY) {Was this a bug fix or a bug introduce?
Ouch. Introduce in this case, unfortunately. I *thought* TLAN_CSTAT_READY would have been a single bit instead of a bit mask. I should have actually checked it, and still put that change into a separate patch.
This might not be the one and only place where this kind of shortcut was made --- for 80 characters per line compliance. There are very few, anyway, in similar places.
I'll recheck the patch and provide a correction, in the coming days likely.
Many thanks for finding this!
Signature · 2 lines
Sakari Ailus [email protected]