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 205fc83..d82a712 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));