summaryrefslogtreecommitdiffstats
path: root/fs/partitions
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-04-28 11:16:30 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-28 17:58:47 +0200
commit73f20e58b1d586e9f6d3ddc3aad872829aca7743 (patch)
treecd426ad1186438a0b16ade918e73c0b84c4bbe92 /fs/partitions
parentfat: use __getname() (diff)
downloadlinux-73f20e58b1d586e9f6d3ddc3aad872829aca7743.tar.xz
linux-73f20e58b1d586e9f6d3ddc3aad872829aca7743.zip
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 <fseidel@suse.de> Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/partitions')
0 files changed, 0 insertions, 0 deletions