diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-11-24 10:54:12 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:14 -0500 |
commit | 800c0cad962dcf630cabf3efdc5983619e73d4c9 (patch) | |
tree | 4d593b6ec683b524bb2e503483696218aa1eb167 /drivers/s390/scsi/zfcp_dbf.c | |
parent | bd0072ecc449fb2ea8f6a2c9f6ff308f3ae0b078 (diff) |
[SCSI] zfcp: Remove ZFCP_DID_MASK
Instead of assigning 4 bytes with the highest byte masked out, use a 3
byte array with the ntoh24 and h24ton helper functions, thus
eliminating the need for the ZFCP_DID_MASK.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_dbf.c')
-rw-r--r-- | drivers/s390/scsi/zfcp_dbf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/s390/scsi/zfcp_dbf.c b/drivers/s390/scsi/zfcp_dbf.c index e945344ff711..517f196b4c52 100644 --- a/drivers/s390/scsi/zfcp_dbf.c +++ b/drivers/s390/scsi/zfcp_dbf.c | |||
@@ -178,7 +178,7 @@ void _zfcp_dbf_hba_fsf_response(const char *tag2, int level, | |||
178 | 178 | ||
179 | case FSF_QTCB_SEND_ELS: | 179 | case FSF_QTCB_SEND_ELS: |
180 | send_els = (struct zfcp_send_els *)fsf_req->data; | 180 | send_els = (struct zfcp_send_els *)fsf_req->data; |
181 | response->u.els.d_id = qtcb->bottom.support.d_id; | 181 | response->u.els.d_id = ntoh24(qtcb->bottom.support.d_id); |
182 | response->u.els.ls_code = send_els->ls_code >> 24; | 182 | response->u.els.ls_code = send_els->ls_code >> 24; |
183 | break; | 183 | break; |
184 | 184 | ||
@@ -812,7 +812,7 @@ void zfcp_dbf_san_incoming_els(struct zfcp_fsf_req *fsf_req) | |||
812 | int length = (int)buf->length - | 812 | int length = (int)buf->length - |
813 | (int)((void *)&buf->payload - (void *)buf); | 813 | (int)((void *)&buf->payload - (void *)buf); |
814 | 814 | ||
815 | zfcp_dbf_san_els("iels", 1, fsf_req, buf->d_id, | 815 | zfcp_dbf_san_els("iels", 1, fsf_req, ntoh24(buf->d_id), |
816 | fc_host_port_id(adapter->scsi_host), | 816 | fc_host_port_id(adapter->scsi_host), |
817 | buf->payload.data[0], (void *)buf->payload.data, | 817 | buf->payload.data[0], (void *)buf->payload.data, |
818 | length); | 818 | length); |