From: Dan Carpenter Date: Thu, 14 Apr 2016 09:37:44 +0000 (+0300) Subject: hpsa: set the enclosure identifier to zero X-Git-Tag: v4.1.12-93~2^2~147 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=7f4339486db413221f47d920a7369a9777a2b46e;p=users%2Fjedix%2Flinux-maple.git hpsa: set the enclosure identifier to zero This has only called from show_sas_rphy_enclosure_identifier(). The caller expects that we set an identifier, otherwise it uses an uninitialized variable. [mkp: fixed typo] Signed-off-by: Dan Carpenter Acked-by: Don Brace Signed-off-by: Martin K. Petersen Orabug: 25605941 (cherry picked from commit aa105695732daa6604cb017ceb59a05ef34956bd) Signed-off-by: Jack Vogel --- diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index d04f65efab713..058d95408733c 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -9753,6 +9753,7 @@ hpsa_sas_get_linkerrors(struct sas_phy *phy) static int hpsa_sas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) { + *identifier = 0; return 0; }