summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2023-08-03 13:29:34 +0300
committerTom Rini <[email protected]>2023-08-08 17:41:52 -0400
commit08404fa2087946bb370430d466fe5011f18ef072 (patch)
tree6c755cfa5c0428970564da2b5c11c0df18785d4a /scripts
parent939390b203dde8a0176dbfa272dcb7bc54949baf (diff)
btrfs: fix some error checking for btrfs_decompress()
The btrfs_decompress() function mostly (u32)-1 on error but it can also return -EPERM or other kernel error codes from zstd_decompress(). The "ret" variable is an int, so we could just check for negatives. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Qu Wenruo <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions