mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Explicitly use a pair of parentheses to ensure correct evaluation
ordering for bitwise operation. Submitted by: swildner (DragonFly) MFC after: 2 weeks
This commit is contained in:
parent
a9c007f1f2
commit
cb5a918317
2 changed files with 3 additions and 3 deletions
|
|
@ -605,7 +605,7 @@ mpt_issue_raid_req(struct mpt_softc *mpt, struct mpt_raid_volume *vol,
|
|||
MPI_pSGE_SET_FLAGS(se, (MPI_SGE_FLAGS_SIMPLE_ELEMENT |
|
||||
MPI_SGE_FLAGS_LAST_ELEMENT | MPI_SGE_FLAGS_END_OF_BUFFER |
|
||||
MPI_SGE_FLAGS_END_OF_LIST |
|
||||
write ? MPI_SGE_FLAGS_HOST_TO_IOC : MPI_SGE_FLAGS_IOC_TO_HOST));
|
||||
(write ? MPI_SGE_FLAGS_HOST_TO_IOC : MPI_SGE_FLAGS_IOC_TO_HOST)));
|
||||
se->FlagsLength = htole32(se->FlagsLength);
|
||||
rap->MsgContext = htole32(req->index | raid_handler_id);
|
||||
|
||||
|
|
|
|||
|
|
@ -548,8 +548,8 @@ mpt_user_raid_action(struct mpt_softc *mpt, struct mpt_raid_action *raid_act,
|
|||
MPI_pSGE_SET_FLAGS(se, (MPI_SGE_FLAGS_SIMPLE_ELEMENT |
|
||||
MPI_SGE_FLAGS_LAST_ELEMENT | MPI_SGE_FLAGS_END_OF_BUFFER |
|
||||
MPI_SGE_FLAGS_END_OF_LIST |
|
||||
raid_act->write ? MPI_SGE_FLAGS_HOST_TO_IOC :
|
||||
MPI_SGE_FLAGS_IOC_TO_HOST));
|
||||
(raid_act->write ? MPI_SGE_FLAGS_HOST_TO_IOC :
|
||||
MPI_SGE_FLAGS_IOC_TO_HOST)));
|
||||
}
|
||||
se->FlagsLength = htole32(se->FlagsLength);
|
||||
rap->MsgContext = htole32(req->index | user_handler_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue