Re: [PATCH] ufshcd: fix Wsometimes-uninitialized warning

From: Martin K. Petersen
Date: Mon Dec 07 2020 - 20:31:28 EST



Arnd,

> clang complains about a possible code path in which a variable is
> used without an initialization:
>
> drivers/scsi/ufs/ufshcd.c:7690:3: error: variable 'sdp' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
> BUG_ON(1);
> ^~~~~~~~~

Applied to 5.11/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering