IB/hfi1: Relocate rcvhdrcnt module parameter check.
authorKrzysztof Blaszkowski <krzysztof.blaszkowski@intel.com>
Tue, 25 Oct 2016 20:12:11 +0000 (13:12 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:16:45 +0000 (16:16 -0500)
commit11501ab9df687c6f0852719a5165e16cd3eb3c10
tree71b8b40f3815c9148000d9afc2e21d8a396e1367
parent458ed666fe14a54dfb6690a1a7f541782d1342c9
IB/hfi1: Relocate rcvhdrcnt module parameter check.

Validate the rcvhdrcnt module parameter in a single function at module
load time. This allows proper error reporting.

Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Krzysztof Blaszkowski <krzysztof.blaszkowski@intel.com>
Signed-off-by: Tymoteusz Kielan <tymoteusz.kielan@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/init.c