projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f48fea0
)
fs/adfs/adfs.h: fix unsigned comparison
author
Andrew Morton
<
[email protected]
>
Wed, 23 Mar 2011 23:41:43 +0000
(16:41 -0700)
committer
Linus Torvalds
<
[email protected]
>
Thu, 24 Mar 2011 02:46:09 +0000
(19:46 -0700)
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 <
[email protected]
>
Cc: Stuart Swales <
[email protected]
>
Cc: Russell King <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/adfs/adfs.h
patch
|
blob
|
history
diff --git
a/fs/adfs/adfs.h
b/fs/adfs/adfs.h
index a8a58d864f960d89cccd8e25c29f05826f2b290e..718ac1f440c6729c334b800375d853a5bd107366 100644
(file)
--- a/
fs/adfs/adfs.h
+++ b/
fs/adfs/adfs.h
@@
-112,7
+112,7
@@
struct object_info {
/* RISC OS 12-bit filetype converts to ,xyz hex filename suffix */
static inline int append_filetype_suffix(char *buf, __u16 filetype)
{
- if (filetype ==
-1)
+ if (filetype ==
0xffff) /* no explicit 12-bit file type was set */
return 0;
*buf++ = ',';