]> err.no Git - linux-2.6/commitdiff
[PATCH] cramfs: make cramfs_uncompress_exit() return void
authorAlexey Dobriyan <adobriyan@gmail.com>
Fri, 29 Sep 2006 09:01:05 +0000 (02:01 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 29 Sep 2006 16:18:20 +0000 (09:18 -0700)
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: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/cramfs/uncompress.c
include/linux/cramfs_fs.h

index 8def89f2c4383b052490eeba366241adc07ccaa8..fc3ccb74626ffb3a581da4049c703242352dedfa 100644 (file)
@@ -68,11 +68,10 @@ int cramfs_uncompress_init(void)
        return 0;
 }
 
-int cramfs_uncompress_exit(void)
+void cramfs_uncompress_exit(void)
 {
        if (!--initialized) {
                zlib_inflateEnd(&stream);
                vfree(stream.workspace);
        }
-       return 0;
 }
index a41f38428c37d794ac80f947502c4142123a4afc..1dba681e428d27e1750652e94b9a84c080cb1b59 100644 (file)
@@ -87,6 +87,6 @@ struct cramfs_super {
 /* Uncompression interfaces to the underlying zlib */
 int cramfs_uncompress_block(void *dst, int dstlen, void *src, int srclen);
 int cramfs_uncompress_init(void);
-int cramfs_uncompress_exit(void);
+void cramfs_uncompress_exit(void);
 
 #endif