Commit 4db943a9 authored by Ben Collins's avatar Ben Collins

[SBP2]: Fix compile for older gcc's

parent a4ccbdfa
...@@ -1313,6 +1313,7 @@ static int sbp2_logout_device(struct scsi_id_instance_data *scsi_id) ...@@ -1313,6 +1313,7 @@ static int sbp2_logout_device(struct scsi_id_instance_data *scsi_id)
{ {
struct sbp2scsi_host_info *hi = scsi_id->hi; struct sbp2scsi_host_info *hi = scsi_id->hi;
quadlet_t data[2]; quadlet_t data[2];
int error;
SBP2_DEBUG("sbp2_logout_device"); SBP2_DEBUG("sbp2_logout_device");
...@@ -1353,7 +1354,7 @@ static int sbp2_logout_device(struct scsi_id_instance_data *scsi_id) ...@@ -1353,7 +1354,7 @@ static int sbp2_logout_device(struct scsi_id_instance_data *scsi_id)
atomic_set(&scsi_id->sbp2_login_complete, 0); atomic_set(&scsi_id->sbp2_login_complete, 0);
int error = hpsb_node_write(scsi_id->ne, error = hpsb_node_write(scsi_id->ne,
scsi_id->sbp2_management_agent_addr, scsi_id->sbp2_management_agent_addr,
data, 8); data, 8);
if (error) if (error)
...@@ -1377,6 +1378,7 @@ static int sbp2_reconnect_device(struct scsi_id_instance_data *scsi_id) ...@@ -1377,6 +1378,7 @@ static int sbp2_reconnect_device(struct scsi_id_instance_data *scsi_id)
{ {
struct sbp2scsi_host_info *hi = scsi_id->hi; struct sbp2scsi_host_info *hi = scsi_id->hi;
quadlet_t data[2]; quadlet_t data[2];
int error;
SBP2_DEBUG("sbp2_reconnect_device"); SBP2_DEBUG("sbp2_reconnect_device");
...@@ -1423,7 +1425,7 @@ static int sbp2_reconnect_device(struct scsi_id_instance_data *scsi_id) ...@@ -1423,7 +1425,7 @@ static int sbp2_reconnect_device(struct scsi_id_instance_data *scsi_id)
atomic_set(&scsi_id->sbp2_login_complete, 0); atomic_set(&scsi_id->sbp2_login_complete, 0);
int error = hpsb_node_write(scsi_id->ne, error = hpsb_node_write(scsi_id->ne,
scsi_id->sbp2_management_agent_addr, scsi_id->sbp2_management_agent_addr,
data, 8); data, 8);
if (error) if (error)
......
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