diff options
| author | Damien Le Moal <damien.lemoal@opensource.wdc.com> | 2022-03-08 08:48:53 +0900 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-04-25 22:30:04 -0400 |
| commit | 82b4420c288c45cc38a1be6c5b4e396c1ea4599f (patch) | |
| tree | afe026eee8267b68bc29c77a9d4649e15fb076d2 /tools/lib/python | |
| parent | 7ab4d2441b952977556672c2fe3f4c2a698cbb37 (diff) | |
scsi: mpt3sas: Fix event callback log_code value handling
In mpt3sas_scsih_event_callback(), fix a sparse warning when testing the
event log code value by replacing the use of a pointer to the address
storing the event log code with a log code local variable. Doing so,
le32_to_cpu() is used when the log code value is assigned, avoiding a
sparse warning.
Link: https://lore.kernel.org/r/20220307234854.148145-5-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/lib/python')
0 files changed, 0 insertions, 0 deletions
