Skip to content
Commit 1b761982 authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Jon Mason
Browse files

NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks



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: bf2a952d ("NTB: Add IDT 89HPESxNTx PCIe-switches support")
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent 7756e2b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment