]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: fix test of unsigned variable
authorMike Marciniszyn <mike.marciniszyn@intel.com>
Tue, 12 May 2015 17:42:42 +0000 (13:42 -0400)
committerDoug Ledford <dledford@redhat.com>
Tue, 12 May 2015 17:55:41 +0000 (13:55 -0400)
commit2adbd6cc4b81cc2ea43cc197aaa7b614816ff958
tree9385bb362750aea488df11d38a2bf35d9675e6fc
parent08e52c892cef4a4eb168480d342616f3ad80d52e
IB/qib: fix test of unsigned variable

Commit f730c28688bd ("IB/qib: use arch_phys_wc_add()")
adjusted mtrr inititialization to use the new interface.

Unfortunately, the new interface returns a signed
value and the patch tested the unsigned wc_cookie.

Fix the issue by changing the type of wc_cookie to int.  For
the success case the ret left at zero to avoid
a warning from the caller.  For failure wc_cookie
is used as the ret.

Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qib/qib.h
drivers/infiniband/hw/qib/qib_wc_x86_64.c