Tag: aa6cd29b72a5d8e6e5c8f536bc48693824ebfe09

[SCSI] libfc: Correct use of ! and &

Author: Julia Lawall <julia@diku.dk> !ep->esb_stat is either 1 or 0, and the rightmost bit of ESB_ST_COMPLETE is always 0, making the result of !ep->esb_stat & ESB_ST_COMPLETE always 0. Thus parentheses around the argument to ! seem needed. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // @@ expression E; constant C; @@ …

Continue reading