From: Mike Marciniszyn Date: Tue, 12 May 2015 17:42:42 +0000 (-0400) Subject: IB/qib: fix test of unsigned variable X-Git-Tag: omap-for-v4.2/wakeirq-drivers~2^2~32^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec40f925e0151e3c130fce2b5a1c6389c5b5e4dd;p=pandora-kernel.git 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 Signed-off-by: Doug Ledford --- Reading git-diff-tree failed