diff options
author | Mike Marciniszyn <mike.marciniszyn@intel.com> | 2015-05-12 13:42:42 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-05-12 13:55:41 -0400 |
commit | ec40f925e0151e3c130fce2b5a1c6389c5b5e4dd (patch) | |
tree | 9385bb362750aea488df11d38a2bf35d9675e6fc /tools/power | |
parent | ec04847c0c5b471bab2dacceadfdb803a9d1a2ea (diff) | |
download | lwn-ec40f925e0151e3c130fce2b5a1c6389c5b5e4dd.tar.gz lwn-ec40f925e0151e3c130fce2b5a1c6389c5b5e4dd.zip |
IB/qib: fix test of unsigned variable
Commit d4988623cc60 ("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>
Diffstat (limited to 'tools/power')
0 files changed, 0 insertions, 0 deletions