iser-target: Fix wc->wr_id cast warning

CC [M]  drivers/infiniband/ulp/isert/ib_isert.o
drivers/infiniband/ulp/isert/ib_isert.c: In function ‘isert_cq_comp_err’:
drivers/infiniband/ulp/isert/ib_isert.c:1979:42: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
Nicholas Bellinger 2014-12-07 13:12:05 +02:00
Родитель 10633c37bf
Коммит ed4520ae9b
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -1976,8 +1976,7 @@ isert_cq_comp_err(struct isert_conn *isert_conn, struct ib_wc *wc)
isert_info("conn %p completing conn_wait_comp_err\n", isert_info("conn %p completing conn_wait_comp_err\n",
isert_conn); isert_conn);
complete(&isert_conn->conn_wait_comp_err); complete(&isert_conn->conn_wait_comp_err);
} else } else if (is_isert_tx_desc(isert_conn, (void *)(uintptr_t)wc->wr_id)) {
if (is_isert_tx_desc(isert_conn, (void *)wc->wr_id)) {
struct ib_device *ib_dev = isert_conn->conn_cm_id->device; struct ib_device *ib_dev = isert_conn->conn_cm_id->device;
struct isert_cmd *isert_cmd; struct isert_cmd *isert_cmd;
struct iser_tx_desc *desc; struct iser_tx_desc *desc;