diff options
| author | Ira Weiny <[email protected]> | 2015-12-02 00:43:35 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2015-12-21 13:53:37 -0800 |
| commit | d8e499ffe4090ad1e53700a2d0f00599ac69727e (patch) | |
| tree | bd922da43f96c3eb39bd005db185479998740fae | |
| parent | 845e30e62b19e2db68d36828bf9c540a5e390efe (diff) | |
staging/rdma/hfi1: hfi1_ioctl remove setlink state
Set link state is not supported remove from the switch statement and allow the
default to return -ENOTTY
Signed-off-by: Dennis Dalessandro <[email protected]>
Signed-off-by: Ira Weiny <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/rdma/hfi1/diag.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/staging/rdma/hfi1/diag.c b/drivers/staging/rdma/hfi1/diag.c index 205fc837d9c0..d82a712b29ef 100644 --- a/drivers/staging/rdma/hfi1/diag.c +++ b/drivers/staging/rdma/hfi1/diag.c @@ -1012,11 +1012,6 @@ static long hfi1_ioctl(struct file *fp, unsigned int cmd, unsigned long arg) spin_lock_irqsave(&dd->hfi1_snoop.snoop_lock, flags); switch (cmd) { - case HFI1_SNOOP_IOCSETLINKSTATE: - snoop_dbg("HFI1_SNOOP_IOCSETLINKSTATE is not valid"); - ret = -EINVAL; - break; - case HFI1_SNOOP_IOCSETLINKSTATE_EXTRA: memset(&link_info, 0, sizeof(link_info)); |