diff options
| author | 2022-03-08 08:48:50 +0900 | |
|---|---|---|
| committer | 2022-04-25 22:30:04 -0400 | |
| commit | dceaef94a4753d4d49d493a6cd4a81168e384d6f (patch) | |
| tree | 2634f1f1908ea8dc7cd599e1f5c5b12d268bec34 /tools/perf/scripts/python | |
| parent | scsi: qla2xxx: Remove free_sg command flag (diff) | |
scsi: mpt3sas: Fix _ctl_set_task_mid() TaskMID check
The TaskMID field of struct Mpi2SCSITaskManagementRequest_t is a 16-bit
little endian value. Fix the search loop in _ctl_set_task_mid() to add a
cpu_to_le16() conversion before checking the value of TaskMID to avoid
sparse warnings. While at it, simplify the search loop code to remove an
unnecessarily complicated if condition.
Link: https://lore.kernel.org/r/20220307234854.148145-2-damien.lemoal@opensource.wdc.com
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
