staging/rdma/hfi1: hfi1_ioctl remove setlink state
authorIra Weiny <ira.weiny@intel.com>
Wed, 2 Dec 2015 05:43:35 +0000 (00:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:53:37 +0000 (13:53 -0800)
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>
drivers/staging/rdma/hfi1/diag.c

index 205fc837d9c0dd8e4ba987ad33f296310ee04192..d82a712b29eff06e6b94cb9c65df14be07283c00 100644 (file)
@@ -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));