Skip to content

Commit ac56f16

Browse files
Dennis Dalessandrodledford
authored andcommitted
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>
1 parent 0f7b1f9 commit ac56f16

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

‎drivers/staging/rdma/hfi1/file_ops.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
213213
copy = sizeof(uinfo);
214214
dest = &uinfo;
215215
break;
216-
case HFI1_CMD_SDMA_STATUS_UPD:
217216
case HFI1_CMD_CREDIT_UPD:
218217
copy = 0;
219218
break;
@@ -273,8 +272,6 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
273272
ret = get_base_info(fp, (void __user *)(unsigned long)
274273
user_val, cmd.len);
275274
break;
276-
case HFI1_CMD_SDMA_STATUS_UPD:
277-
break;
278275
case HFI1_CMD_CREDIT_UPD:
279276
if (uctxt && uctxt->sc)
280277
sc_return_credits(uctxt->sc);

‎include/uapi/rdma/hfi/hfi1_user.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@
114114
#define HFI1_CMD_TID_UPDATE 4 /* update expected TID entries */
115115
#define HFI1_CMD_TID_FREE 5 /* free expected TID entries */
116116
#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 */
118117

119118
#define HFI1_CMD_RECV_CTRL 8 /* control receipt of packets */
120119
#define HFI1_CMD_POLL_TYPE 9 /* set the kind of polling we want */

0 commit comments

Comments
 (0)