Skip to contentSkip to conversation

tlan: Code cleanup: checkpatch.pl is relatively happy now.

DISCUSSION Dan Carpenter 2 participants 2 messages Feb 6, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

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]