diff options
author | YueHaibing <yuehaibing@huawei.com> | 2020-12-15 04:14:15 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2020-12-15 21:13:46 +0100 |
commit | 42a44704367cd18d069c9855cb84090ff90ecd86 (patch) | |
tree | 95671eed4221eb141981e66d25d53539c9879752 /ipc | |
parent | mm/zswap: make struct kernel_param_ops definitions const (diff) | |
download | linux-42a44704367cd18d069c9855cb84090ff90ecd86.tar.xz linux-42a44704367cd18d069c9855cb84090ff90ecd86.zip |
mm/zswap: fix passing zero to 'PTR_ERR' warning
Fix smatch warning:
mm/zswap.c:425 zswap_cpu_comp_prepare() warn: passing zero to 'PTR_ERR'
crypto_alloc_comp() never return NULL, use IS_ERR instead of
IS_ERR_OR_NULL to fix this.
Link: https://lkml.kernel.org/r/20201031055615.28080-1-yuehaibing@huawei.com
Fixes: f1c54846ee45 ("zswap: dynamic pool creation")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Seth Jennings <sjenning@redhat.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Vitaly Wool <vitaly.wool@konsulko.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions