diff options
author | Israel Rukshin <israelr@mellanox.com> | 2019-05-15 06:49:27 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-05-21 14:01:06 -0400 |
commit | dae6345aa7a992fda77b5d0de286c9b238931fbd (patch) | |
tree | 7de48085bd36a29dd292c4e0b9e26bd2b8e8c83b /drivers/infiniband/ulp | |
parent | 0cc2896f02536272fc58a7d7d2fb2e84f6e717b4 (diff) |
IB/isert: Remove unused sig_attrs argument
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/ulp')
-rw-r--r-- | drivers/infiniband/ulp/isert/ib_isert.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/infiniband/ulp/isert/ib_isert.c b/drivers/infiniband/ulp/isert/ib_isert.c index 989f1ac4245c..ffef4ac152ca 100644 --- a/drivers/infiniband/ulp/isert/ib_isert.c +++ b/drivers/infiniband/ulp/isert/ib_isert.c | |||
@@ -2067,8 +2067,7 @@ isert_put_text_rsp(struct iscsi_cmd *cmd, struct iscsi_conn *conn) | |||
2067 | } | 2067 | } |
2068 | 2068 | ||
2069 | static inline void | 2069 | static inline void |
2070 | isert_set_dif_domain(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs, | 2070 | isert_set_dif_domain(struct se_cmd *se_cmd, struct ib_sig_domain *domain) |
2071 | struct ib_sig_domain *domain) | ||
2072 | { | 2071 | { |
2073 | domain->sig_type = IB_SIG_TYPE_T10_DIF; | 2072 | domain->sig_type = IB_SIG_TYPE_T10_DIF; |
2074 | domain->sig.dif.bg_type = IB_T10DIF_CRC; | 2073 | domain->sig.dif.bg_type = IB_T10DIF_CRC; |
@@ -2096,17 +2095,17 @@ isert_set_sig_attrs(struct se_cmd *se_cmd, struct ib_sig_attrs *sig_attrs) | |||
2096 | case TARGET_PROT_DIN_INSERT: | 2095 | case TARGET_PROT_DIN_INSERT: |
2097 | case TARGET_PROT_DOUT_STRIP: | 2096 | case TARGET_PROT_DOUT_STRIP: |
2098 | sig_attrs->mem.sig_type = IB_SIG_TYPE_NONE; | 2097 | sig_attrs->mem.sig_type = IB_SIG_TYPE_NONE; |
2099 | isert_set_dif_domain(se_cmd, sig_attrs, &sig_attrs->wire); | 2098 | isert_set_dif_domain(se_cmd, &sig_attrs->wire); |
2100 | break; | 2099 | break; |
2101 | case TARGET_PROT_DOUT_INSERT: | 2100 | case TARGET_PROT_DOUT_INSERT: |
2102 | case TARGET_PROT_DIN_STRIP: | 2101 | case TARGET_PROT_DIN_STRIP: |
2103 | sig_attrs->wire.sig_type = IB_SIG_TYPE_NONE; | 2102 | sig_attrs->wire.sig_type = IB_SIG_TYPE_NONE; |
2104 | isert_set_dif_domain(se_cmd, sig_attrs, &sig_attrs->mem); | 2103 | isert_set_dif_domain(se_cmd, &sig_attrs->mem); |
2105 | break; | 2104 | break; |
2106 | case TARGET_PROT_DIN_PASS: | 2105 | case TARGET_PROT_DIN_PASS: |
2107 | case TARGET_PROT_DOUT_PASS: | 2106 | case TARGET_PROT_DOUT_PASS: |
2108 | isert_set_dif_domain(se_cmd, sig_attrs, &sig_attrs->wire); | 2107 | isert_set_dif_domain(se_cmd, &sig_attrs->wire); |
2109 | isert_set_dif_domain(se_cmd, sig_attrs, &sig_attrs->mem); | 2108 | isert_set_dif_domain(se_cmd, &sig_attrs->mem); |
2110 | break; | 2109 | break; |
2111 | default: | 2110 | default: |
2112 | isert_err("Unsupported PI operation %d\n", se_cmd->prot_op); | 2111 | isert_err("Unsupported PI operation %d\n", se_cmd->prot_op); |