staging/rdma/hfi1: Return immediately on error
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Wed, 2 Dec 2015 05:43:38 +0000 (00:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:53:37 +0000 (13:53 -0800)
commit2d1900f131f015ff335c53b655edfb4e10e57ee7
treede8e2a2cc08f935cd01876903ae6a7634a0628c6
parent33ab349037db079aec7d60608fe4fb1114be6b91
staging/rdma/hfi1: Return immediately on error

Now that the spinlock is not taken throughout hfi1_ioctl it is safe to return
early rather than setting a variable and falling through the switch.

Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
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