Thread (1 message) 1 message, 1 author, 2021-06-19

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

From: Martin K. Petersen <hidden>
Date: 2021-06-19 02:31:23
Also in: lkml, target-devel

Nathan,
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help