mirror of https://gitee.com/openkylin/linux.git
3b82a051c1
Currently when an error code -EIO or -ENOSPC in the for-loop of
writeback_store the error code is being overwritten by a ret = len
assignment at the end of the function and the error codes are being
lost. Fix this by assigning ret = len at the start of the function and
remove the assignment from the end, hence allowing ret to be preserved
when error codes are assigned to it.
Addresses Coverity ("Unused value")
Link: http://lkml.kernel.org/r/20191128122958.178290-1-colin.king@canonical.com
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
zcomp.c | ||
zcomp.h | ||
zram_drv.c | ||
zram_drv.h |