staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors
authorIra Weiny <ira.weiny@intel.com>
Wed, 2 Dec 2015 05:43:34 +0000 (00:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:53:37 +0000 (13:53 -0800)
commit845e30e62b19e2db68d36828bf9c540a5e390efe
tree38eef1256e10f58a4d2e5bcd07bba957c4f3c733
parentae1724dffcbcbf0f38320e4295367ff4ea8f513c
staging/rdma/hfi1: Return early from hfi1_ioctl parameter errors

Rather than have a switch in a large else clause make the parameter checks
return immediately.

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