staging/rdma/hfi1: Eliminate WARN_ON when VL is invalid
authorIra Weiny <iweiny@gmail.com>
Sat, 21 Nov 2015 00:43:47 +0000 (19:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Dec 2015 21:48:27 +0000 (13:48 -0800)
commit4be81991ec5f21a9dcf4b951689d81cc1b03ca25
tree537552f298844dc50812e7b152a661106cf2587a
parent9d2f53ef42c15f6e47b48246beb0a32c4ff3b3ed
staging/rdma/hfi1: Eliminate WARN_ON when VL is invalid

sdma_select_engine_vl only needs to protect itself from an invalid VL.
Something higher up the stack should be warning the user when they try
to use an SL which maps to an invalid VL.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Reviewed-by: Kaike Wan <kaike.wan@intel.com>
Signed-off-by: Ira Weiny <iweiny@gmail.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/sdma.c