mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
Decompressors: get rid of set_error_fn() macro
set_error_fn() has become a useless complication after c1e7c3ae59
("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>
This commit is contained in:
committed by
Linus Torvalds
parent
6b01ed64c1
commit
93685ad247
@@ -91,7 +91,7 @@ STATIC inline int INIT unlzo(u8 *input, int in_len,
|
||||
int (*fill) (void *, unsigned int),
|
||||
int (*flush) (void *, unsigned int),
|
||||
u8 *output, int *posp,
|
||||
void (*error_fn) (char *x))
|
||||
void (*error) (char *x))
|
||||
{
|
||||
u8 skip = 0, r = 0;
|
||||
u32 src_len, dst_len;
|
||||
@@ -99,8 +99,6 @@ STATIC inline int INIT unlzo(u8 *input, int in_len,
|
||||
u8 *in_buf, *in_buf_save, *out_buf;
|
||||
int ret = -1;
|
||||
|
||||
set_error_fn(error_fn);
|
||||
|
||||
if (output) {
|
||||
out_buf = output;
|
||||
} else if (!flush) {
|
||||
|
Reference in New Issue
Block a user