From: Dan Carpenter Date: Thu, 17 Mar 2011 19:39:49 +0000 (+0300) Subject: USB: xhci: unsigned char never equals -1 X-Git-Tag: v2.6.39-rc4~16^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22e0487047567252d5677ff35766cd884375efc2;p=pandora-kernel.git USB: xhci: unsigned char never equals -1 There were some places that compared port_speed == -1 where port_speed is a u8. This doesn't work unless we cast the -1 to u8. Some places did it correctly. Instead of using -1 directly, I've created a DUPLICATE_ENTRY define which does the cast and is more descriptive as well. Signed-off-by: Dan Carpenter Signed-off-by: Sarah Sharp --- Reading git-diff-tree failed