Re: [PATCH] scsi: elx: efct: Do not use id uninitialized in efct_lio_setup_session()

From: Martin K. Petersen
Date: Fri Jun 18 2021 - 22:31:23 EST


> clang warns:
> drivers/scsi/elx/efct/efct_lio.c:1216:24: warning: variable 'id' is
> uninitialized when used here [-Wuninitialized]
> se_sess, node, id);
> ^~
> Shuffle the debug print after id's initialization so that the actual
> value is printed.

Applied to 5.14/scsi-staging, thanks!

Martin K. Petersen Oracle Linux Engineering