scsi: pm8001: Use int instead of u32 to store error codes
Subsystems (2)
PATCH 1/1 scsi: pm8001: Use int instead of u32 to store error codes
Use int instead of u32 for 'ret' variable to store negative error codes returned by PM8001_CHIP_DISP->set_nvmd_req().
Signed-off-by Qianfeng Rong <[email protected]>
--- drivers/scsi/pm8001/pm8001_ctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/pm8001/pm8001_ctl.c +1 -1
@@ -680,7 +680,7 @@ static int pm8001_set_nvmd(struct pm8001_hba_info *pm8001_ha)struct pm8001_ioctl_payload *payload;DECLARE_COMPLETION_ONSTACK (completion);u8 *ioctlbuffer; -u32 ret; +int ret;u32 length =1024 *5 +sizeof (*payload) -1 ;if (pm8001_ha->fw_image->size >4096 ) {
Signature · 1 line
2.34.1
Martin K. Petersen
AppliedQianfeng,
Quoted 2 lines
Use int instead of u32 for 'ret' variable to store negative error codes returned by
PM8001_CHIP_DISP->set_nvmd_req().
Applied to 6.18/scsi-staging, thanks!
Signature · 1 line
Martin K. Petersen
Martin K. Petersen
AppliedQuoted 4 lines · Qianfeng Rong
Use int instead of u32 for 'ret' variable to store negative error codes returned by
PM8001_CHIP_DISP->set_nvmd_req().
Applied to 6.18/scsi-queue, thanks!
[1/1] scsi: pm8001: Use int instead of u32 to store error codes
https://git.kernel.org/mkp/scsi/c/bee3554d1a4e
Signature · 1 line
Martin K. Petersen