|
@@ -192,13 +192,11 @@ static int decompress_exec(
|
|
|
|
|
|
memset(&strm, 0, sizeof(strm));
|
|
|
strm.workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL);
|
|
|
- if (strm.workspace == NULL) {
|
|
|
- pr_debug("no memory for decompress workspace\n");
|
|
|
+ if (!strm.workspace)
|
|
|
return -ENOMEM;
|
|
|
- }
|
|
|
+
|
|
|
buf = kmalloc(LBUFSIZE, GFP_KERNEL);
|
|
|
- if (buf == NULL) {
|
|
|
- pr_debug("no memory for read buffer\n");
|
|
|
+ if (!buf) {
|
|
|
retval = -ENOMEM;
|
|
|
goto out_free;
|
|
|
}
|