提交 368bdb3d 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

[PATCH] cramfs: make cramfs_uncompress_exit() return void

It always returns 0, so relying on it is useless.  The only caller isn't
checking return value.  In general, un-, de-, -free functions should return
void.
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 a4376e13
...@@ -68,11 +68,10 @@ int cramfs_uncompress_init(void) ...@@ -68,11 +68,10 @@ int cramfs_uncompress_init(void)
return 0; return 0;
} }
int cramfs_uncompress_exit(void) void cramfs_uncompress_exit(void)
{ {
if (!--initialized) { if (!--initialized) {
zlib_inflateEnd(&stream); zlib_inflateEnd(&stream);
vfree(stream.workspace); vfree(stream.workspace);
} }
return 0;
} }
...@@ -87,6 +87,6 @@ struct cramfs_super { ...@@ -87,6 +87,6 @@ struct cramfs_super {
/* Uncompression interfaces to the underlying zlib */ /* Uncompression interfaces to the underlying zlib */
int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen); int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen);
int cramfs_uncompress_init(void); int cramfs_uncompress_init(void);
int cramfs_uncompress_exit(void); void cramfs_uncompress_exit(void);
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册