Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -9602,6 +9602,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;
}