scsi, aic94xx Fix uninitialized warning
PATCH 1/1 scsi, aic94xx Fix uninitialized warning
Fix uninitialized warning.
drivers/scsi/aic94xx/aic94xx_sds.c: In function ‘asd_process_ctrl_a_user’:drivers/scsi/aic94xx/aic94xx_sds.c:597:21: error: ‘offs’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
asd_read_reg_string(asd_ha, buffer, asd_ha->hw_prof.flash.bar+offs,
^
drivers/scsi/aic94xx/aic94xx_sds.c:985:6: note: ‘offs’ was declared here
u32 offs, size;
^Signed-off-by Prarit Bhargava <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
--- drivers/scsi/aic94xx/aic94xx_sds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/aic94xx/aic94xx_sds.c +1 -1
@@ -982,7 +982,7 @@ static int asd_process_ctrl_a_user(struct asd_ha_struct *asd_ha, struct asd_flash_dir *flash_dir) {int err, i; -u32 offs, size; +u32 uninitialized_var (offs ), size;struct asd_ll_el *el;struct asd_ctrla_phy_settings *ps;struct asd_ctrla_phy_settings dflt_ps;
Signature · 6 lines
1.7.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html