[PATCH] Function v9fs_get_idpool returns int, not u32 as called twice in fs/9p/vfs_in...
commit736c4b8572ac24b1e6fd58d00872305a120ac700
authorMika Kukkonen <mikukkon@gmail.com>
Thu, 7 Dec 2006 04:36:29 +0000 (6 20:36 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:33 +0000 (7 08:39 -0800)
tree7fc742865985b53cd5e4932c425f6e55db65cc00
parent3316eaa31e638d21dfa4a81a3322f8898981c591
[PATCH] Function v9fs_get_idpool returns int, not u32 as called twice in fs/9p/vfs_inode.c

Function v9fs_get_idpool returns int, not u32.  Actually it returns -1 on
errors, and these two callers check if the value is smaller than 0, which
was caught by gcc with extra warning flags.  Compile tested only but should
be OK, as the value computed in v9fs_get_idpool() is also int.

Signed-of-by: Mika Kukkonen <mikukkon@iki.fi>
Cc: Eric Van Hensbergen <ericvh@gmail.com>
Cc: Ron Minnich <rminnich@lanl.gov>
Cc: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/9p/vfs_inode.c