IB/hfi1: Remove unused user command
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Thu, 19 May 2016 12:26:17 +0000 (05:26 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 26 May 2016 15:23:18 +0000 (11:23 -0400)
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>
drivers/staging/rdma/hfi1/file_ops.c
include/uapi/rdma/hfi/hfi1_user.h

index 4287c806642e1057cbe91531416cc2d22b3788d7..322e55f7b4b44a83df4615375933c2ca40722f82 100644 (file)
@@ -213,7 +213,6 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
                copy = sizeof(uinfo);
                dest = &uinfo;
                break;
-       case HFI1_CMD_SDMA_STATUS_UPD:
        case HFI1_CMD_CREDIT_UPD:
                copy = 0;
                break;
@@ -273,8 +272,6 @@ static ssize_t hfi1_file_write(struct file *fp, const char __user *data,
                ret = get_base_info(fp, (void __user *)(unsigned long)
                                    user_val, cmd.len);
                break;
-       case HFI1_CMD_SDMA_STATUS_UPD:
-               break;
        case HFI1_CMD_CREDIT_UPD:
                if (uctxt && uctxt->sc)
                        sc_return_credits(uctxt->sc);
index 3e3680d11b25705218221e9af0bf3457bdb45fc2..aa48fbe016af090fdbb4084c6d79a2e505950c8b 100644 (file)
 #define HFI1_CMD_TID_UPDATE      4     /* update expected TID entries */
 #define HFI1_CMD_TID_FREE        5     /* free expected TID entries */
 #define HFI1_CMD_CREDIT_UPD      6     /* force an update of PIO credit */
-#define HFI1_CMD_SDMA_STATUS_UPD 7      /* force update of SDMA status ring */
 
 #define HFI1_CMD_RECV_CTRL       8     /* control receipt of packets */
 #define HFI1_CMD_POLL_TYPE       9     /* set the kind of polling we want */