mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[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: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a4376e13ce
commit
368bdb3d61
2 changed files with 2 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue