[PATCH v3] scsi: ibmvscsi: Don't use rc uninitialized in ibmvscsi_do_work

Michael Ellerman mpe at ellerman.id.au
Wed Jun 5 21:08:14 AEST 2019


"Martin K. Petersen" <martin.petersen at oracle.com> writes:
> Nathan,
>
>> clang warns:
>>
>> drivers/scsi/ibmvscsi/ibmvscsi.c:2126:7: warning: variable 'rc' is used
>> uninitialized whenever switch case is taken [-Wsometimes-uninitialized]
>>         case IBMVSCSI_HOST_ACTION_NONE:
>>              ^~~~~~~~~~~~~~~~~~~~~~~~~
>
> Applied to 5.3/scsi-queue, thanks!

Thanks all.

cheers


More information about the Linuxppc-dev mailing list