Commit aa105695 authored by Dan Carpenter's avatar Dan Carpenter Committed by Martin K. Petersen

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarDon Brace <don.brace@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent b8ac0cc7
...@@ -9602,6 +9602,7 @@ hpsa_sas_get_linkerrors(struct sas_phy *phy) ...@@ -9602,6 +9602,7 @@ hpsa_sas_get_linkerrors(struct sas_phy *phy)
static int static int
hpsa_sas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier) hpsa_sas_get_enclosure_identifier(struct sas_rphy *rphy, u64 *identifier)
{ {
*identifier = 0;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment