diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-04-14 11:37:44 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-04-26 04:00:58 +0200 |
commit | aa105695732daa6604cb017ceb59a05ef34956bd (patch) | |
tree | 3f72409f6e76d11420c08f54ec9ccbf52e8f87b7 /drivers/scsi/hpsa.c | |
parent | mpt3sas - remove unused fw_event_work elements (diff) | |
download | linux-aa105695732daa6604cb017ceb59a05ef34956bd.tar.xz linux-aa105695732daa6604cb017ceb59a05ef34956bd.zip |
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 <dan.carpenter@oracle.com>
Acked-by: Don Brace <don.brace@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/hpsa.c')
-rw-r--r-- | drivers/scsi/hpsa.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 5be944c8b71c..25aa219ea2d2 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -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; } |