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 <dennis.dalessandro@intel.com> Signed-off-by: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
845e30e62b
commit
d8e499ffe4
1 changed files with 0 additions and 5 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue