aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDennis Dalessandro <dennis.dalessandro@intel.com>2016-05-19 08:26:17 -0400
committerDoug Ledford <dledford@redhat.com>2016-05-26 11:23:18 -0400
commitac56f162d4586885238da05131c4e6bbdb536d4e (patch)
treede644aa198c6d8e58760ecda403577e346808326
parent0f7b1f917ca84493d40e4fce32db29e3f7afd5ad (diff)
IB/hfi1: Remove unused user command
The HFI1_CMD_SDMA_STATUS_UPD command was never implemented it has no reason to live in the driver. Remove it. Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com> Reviewed-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/staging/rdma/hfi1/file_ops.c3
-rw-r--r--include/uapi/rdma/hfi/hfi1_user.h1
2 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/rdma/hfi1/file_ops.c b/drivers/staging/rdma/hfi1/file_ops.c
index 4287c806642e..322e55f7b4b4 100644
--- a/drivers/staging/rdma/hfi1/file_ops.c
+++ b/drivers/staging/rdma/hfi1/file_ops.c
@@ -213,7 +213,6 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
213 copy = sizeof(uinfo); 213 copy = sizeof(uinfo);
214 dest = &uinfo; 214 dest = &uinfo;
215 break; 215 break;
216 case HFI1_CMD_SDMA_STATUS_UPD:
217 case HFI1_CMD_CREDIT_UPD: 216 case HFI1_CMD_CREDIT_UPD:
218 copy = 0; 217 copy = 0;
219 break; 218 break;
@@ -273,8 +272,6 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
273 ret = get_base_info(fp, (void __user *)(unsigned long) 272 ret = get_base_info(fp, (void __user *)(unsigned long)
274 user_val, cmd.len); 273 user_val, cmd.len);
275 break; 274 break;
276 case HFI1_CMD_SDMA_STATUS_UPD:
277 break;
278 case HFI1_CMD_CREDIT_UPD: 275 case HFI1_CMD_CREDIT_UPD:
279 if (uctxt && uctxt->sc) 276 if (uctxt && uctxt->sc)
280 sc_return_credits(uctxt->sc); 277 sc_return_credits(uctxt->sc);
diff --git a/include/uapi/rdma/hfi/hfi1_user.h b/include/uapi/rdma/hfi/hfi1_user.h
index 3e3680d11b25..aa48fbe016af 100644
--- a/include/uapi/rdma/hfi/hfi1_user.h
+++ b/include/uapi/rdma/hfi/hfi1_user.h
@@ -114,7 +114,6 @@
114#define HFI1_CMD_TID_UPDATE 4 /* update expected TID entries */ 114#define HFI1_CMD_TID_UPDATE 4 /* update expected TID entries */
115#define HFI1_CMD_TID_FREE 5 /* free expected TID entries */ 115#define HFI1_CMD_TID_FREE 5 /* free expected TID entries */
116#define HFI1_CMD_CREDIT_UPD 6 /* force an update of PIO credit */ 116#define HFI1_CMD_CREDIT_UPD 6 /* force an update of PIO credit */
117#define HFI1_CMD_SDMA_STATUS_UPD 7 /* force update of SDMA status ring */
118 117
119#define HFI1_CMD_RECV_CTRL 8 /* control receipt of packets */ 118#define HFI1_CMD_RECV_CTRL 8 /* control receipt of packets */
120#define HFI1_CMD_POLL_TYPE 9 /* set the kind of polling we want */ 119#define HFI1_CMD_POLL_TYPE 9 /* set the kind of polling we want */