linux-loongson/lib/842
Tanya Agarwal af324dc0e2 lib: 842: Improve error handling in sw842_compress()
The static code analysis tool "Coverity Scan" pointed the following
implementation details out for further development considerations:
CID 1309755: Unused value
In sw842_compress: A value assigned to a variable is never used. (CWE-563)
returned_value: Assigning value from add_repeat_template(p, repeat_count)
to ret here, but that stored value is overwritten before it can be used.

Conclusion:
Add error handling for the return value from an add_repeat_template()
call.

Fixes: 2da572c959 ("lib: add software 842 compression/decompression")
Signed-off-by: Tanya Agarwal <tanyaagarwal25699@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2025-02-09 18:08:11 +08:00
..
842_compress.c lib: 842: Improve error handling in sw842_compress() 2025-02-09 18:08:11 +08:00
842_debugfs.h lib: 842: no need to check return value of debugfs_create functions 2019-07-03 16:57:17 +02:00
842_decompress.c
842.h move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
Makefile