]> git.baikalelectronics.ru Git - kernel.git/commit
IB/hfi1: Remove incorrect IS_ERR check
authorDennis Dalessandro <dennis.dalessandro@intel.com>
Tue, 25 Oct 2016 20:12:46 +0000 (13:12 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:18:57 +0000 (16:18 -0500)
commit6842c7606c4bf1156ea8d93a057c1acfb9da648a
tree9b36971b747cedaab6df7673b28a18ad907866ee
parent834fac8ba3ebfc3aa3b90ce1ceac36d90dc6c8f1
IB/hfi1: Remove incorrect IS_ERR check

Remove IS_ERR check from caching code as the function being called does
not actually return error pointers.

Fixes: c6b7226af74b: "IB/hfi1: Prevent NULL pointer deferences in caching code"
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/user_sdma.c