]> git.baikalelectronics.ru Git - kernel.git/commit
Decompressors: get rid of set_error_fn() macro
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 13 Jan 2011 01:01:14 +0000 (17:01 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:23 +0000 (08:03 -0800)
commitc7d54412a3d3e8ccdec61649e46cf1d3533f11bb
tree979868b5a03a7e73c792e222646a1876b3dc0216
parent9d01bafc981d8f80c86b3ac425cbe132313c6247
Decompressors: get rid of set_error_fn() macro

set_error_fn() has become a useless complication after 9b6a555a04
("bzip2/lzma/gzip: pre-boot malloc doesn't return NULL on failure") fixed
the use of error() in malloc().  Only decompress_unlzma.c had some use for
it and that was easy to change too.

This also gets rid of the static function pointer "error", which
should have been marked as __initdata.

Signed-off-by: Lasse Collin <lasse.collin@tukaani.org>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Alain Knaff <alain@knaff.lu>
Cc: Albin Tonnerre <albin.tonnerre@free-electrons.com>
Cc: Phillip Lougher <phillip@lougher.demon.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/decompress/mm.h
lib/decompress_bunzip2.c
lib/decompress_inflate.c
lib/decompress_unlzma.c
lib/decompress_unlzo.c