summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-02-20 04:17:43 +0100
committerMartin K. Petersen <martin.petersen@oracle.com>2022-02-23 03:31:17 +0100
commit1a37b6738b58d86f6b144b3fc754ace0f2e0166d (patch)
tree090192038bb60f2ba1e64c7d733633a2f27ac34d /include
parentscsi: pm8001: Fix pm8001_update_flash() local variable type (diff)
downloadlinux-1a37b6738b58d86f6b144b3fc754ace0f2e0166d.tar.xz
linux-1a37b6738b58d86f6b144b3fc754ace0f2e0166d.zip
scsi: pm8001: Fix command initialization in pm80XX_send_read_log()
Since the sata_cmd struct is zeroed out before its fields are initialized, there is no need for using "|=" to initialize the ncqtag_atap_dir_m field. Using a standard assignment removes the sparse warning: warning: invalid assignment: |= Also, since the ncqtag_atap_dir_m field has type __le32, use cpu_to_le32() to generate the assigned value. Link: https://lore.kernel.org/r/20220220031810.738362-5-damien.lemoal@opensource.wdc.com Fixes: c6b9ef5779c3 ("[SCSI] pm80xx: NCQ error handling changes") Reviewed-by: John Garry <john.garry@huawei.com> Reviewed-by: Jack Wang <jinpu.wang@ionos.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 'include')
0 files changed, 0 insertions, 0 deletions