diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-08-27 17:13:06 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-27 14:46:05 +0100 |
commit | e3708b8b2762296d7dde4fcac127c5bfffc3b8e5 (patch) | |
tree | e0a89b898aec660997f558b208152f64dd3ad74c /crypto | |
parent | b92c7db5c89f62989cdd5049b7f4a9b83082324f (diff) | |
download | linux-stable-e3708b8b2762296d7dde4fcac127c5bfffc3b8e5.tar.gz linux-stable-e3708b8b2762296d7dde4fcac127c5bfffc3b8e5.tar.bz2 linux-stable-e3708b8b2762296d7dde4fcac127c5bfffc3b8e5.zip |
NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks
[ Upstream commit 1b7619828d0c341612f58683e73f279c37e70bbc ]
Both devm_kcalloc() and devm_kzalloc() return NULL on error. They
never return error pointers.
The use of IS_ERR_OR_NULL is currently applied to the wrong
context.
Fix this by replacing IS_ERR_OR_NULL with regular NULL checks.
Fixes: bf2a952d31d2 ("NTB: Add IDT 89HPESxNTx PCIe-switches support")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions