On Sun, Jun 14, 2020 at 03:39:16PM -0700, Bart Van Assche wrote: > The following code: > qla82xx_rom_fast_read(ha, 0, &n) > only initializes 'n' if it succeeds. Since 'n' may be reported in a debug > message even if no ROM reads succeeded, initialize 'n' to zero. > > This patch fixes the following sparse warning: > > qla_nx.c:1218: qla82xx_pinit_from_rom() error: uninitialized symbol 'n'. > > Cc: Nilesh Javali <njavali@xxxxxxxxxxx> > Cc: Quinn Tran <qutran@xxxxxxxxxxx> > Cc: Himanshu Madhani <himanshu.madhani@xxxxxxxxxx> > Cc: Daniel Wagner <dwagner@xxxxxxx> > Cc: Martin Wilck <mwilck@xxxxxxxx> > Cc: Roman Bolshakov <r.bolshakov@xxxxxxxxx> > Signed-off-by: Bart Van Assche <bvanassche@xxxxxxx> Reviewed-by: Daniel Wagner <dwagner@xxxxxxx>