Re: [PATCH] mm/zswap: Fix passing zero to 'PTR_ERR' warning

2020-11-02 Thread David Hildenbrand
On 31.10.20 06:56, YueHaibing wrote: 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. Fixes: f1c54846ee45 ("zswap: dynamic pool creation") Signed-off-by: YueHaibi

[PATCH] mm/zswap: Fix passing zero to 'PTR_ERR' warning

2020-10-30 Thread YueHaibing
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. Fixes: f1c54846ee45 ("zswap: dynamic pool creation") Signed-off-by: YueHaibing --- mm/zswap.c | 2 +- 1 file chan