mirror of
https://github.com/torvalds/linux.git
synced 2026-02-04 15:28:49 +08:00
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:
committed by
Greg Kroah-Hartman
parent
845e30e62b
commit
d8e499ffe4
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user