From: Andrew Morton Date: Mon, 28 Apr 2008 09:16:30 +0000 (-0700) Subject: FAT_VALID_MEDIA(): remove pointless test X-Git-Tag: v2.6.26-rc1~722 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73f20e58b1d586e9f6d3ddc3aad872829aca7743;p=pandora-kernel.git FAT_VALID_MEDIA(): remove pointless test The on-disk media specification field in FAT is only 8-bits, so testing for <=0xff is pointless, and can generate a "comparison is always true due to limited range of data type" warning. While we're there, convert FAT_VALID_MEDIA() into a C function - the present implementation is buggy: it generates either one or two references to its argument. Cc: Frank Seidel Acked-by: OGAWA Hirofumi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed