Commit 135a9fcf45f8d41b4ab008114792f4f6c6572675
Committed by
Linus Torvalds
1 parent
f48fea035b
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
fs/adfs/adfs.h
... | ... | @@ -112,7 +112,7 @@ |
112 | 112 | /* RISC OS 12-bit filetype converts to ,xyz hex filename suffix */ |
113 | 113 | static 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 | 116 | return 0; |
117 | 117 | |
118 | 118 | *buf++ = ','; |