Skip to content

Commit bee3554

Browse files
qianfengrongmartinkpetersen
authored andcommitted
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 <rongqianfeng@vivo.com> Link: https://lore.kernel.org/r/20250826093242.230344-1-rongqianfeng@vivo.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
1 parent 11e6fb3 commit bee3554

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/scsi/pm8001/pm8001_ctl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ static int pm8001_set_nvmd(struct pm8001_hba_info *pm8001_ha)
682682
struct pm8001_ioctl_payload *payload;
683683
DECLARE_COMPLETION_ONSTACK(completion);
684684
u8 *ioctlbuffer;
685-
u32 ret;
685+
int ret;
686686
u32 length = 1024 * 5 + sizeof(*payload) - 1;
687687

688688
if (pm8001_ha->fw_image->size > 4096) {

0 commit comments

Comments
 (0)