aboutsummaryrefslogtreecommitdiffstats
path: root/fs/adfs/adfs.h
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2011-03-23 19:41:43 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-03-23 22:46:09 -0400
commit135a9fcf45f8d41b4ab008114792f4f6c6572675 (patch)
treeaac70afe1c2e456f14ca52c34dccbb758fdc8b13 /fs/adfs/adfs.h
parentf48fea035b439fa0c75138d0a113ef409dc9caa0 (diff)
fs/adfs/adfs.h: fix unsigned comparison
fs/adfs/adfs.h: In function 'append_filetype_suffix': fs/adfs/adfs.h:115: warning: comparison is always false due to limited range of data type Reported-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Stuart Swales <stuart.swales.croftnuisk@gmail.com> Cc: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/adfs/adfs.h')
-rw-r--r--fs/adfs/adfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/adfs/adfs.h b/fs/adfs/adfs.h
index a8a58d864f96..718ac1f440c6 100644
--- a/fs/adfs/adfs.h
+++ b/fs/adfs/adfs.h
@@ -112,7 +112,7 @@ struct object_info {
112/* RISC OS 12-bit filetype converts to ,xyz hex filename suffix */ 112/* RISC OS 12-bit filetype converts to ,xyz hex filename suffix */
113static inline int append_filetype_suffix(char *buf, __u16 filetype) 113static inline int append_filetype_suffix(char *buf, __u16 filetype)
114{ 114{
115 if (filetype == -1) 115 if (filetype == 0xffff) /* no explicit 12-bit file type was set */
116 return 0; 116 return 0;
117 117
118 *buf++ = ','; 118 *buf++ = ',';