linux/drivers/ntb/hw
Gustavo A. R. Silva 1b7619828d 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: bf2a952d31 ("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>
2018-10-31 16:22:44 -04:00
..
amd treewide: kzalloc_node() -> kcalloc_node() 2018-06-12 16:19:22 -07:00
idt NTB: ntb_hw_idt: replace IS_ERR_OR_NULL with regular NULL checks 2018-10-31 16:22:44 -04:00
intel ntb: intel: fix return value for ndev_vec_mask() 2018-10-31 16:07:26 -04:00
mscc switchtec: Use generic PCI Vendor ID and Class Code 2018-06-29 20:16:44 -05:00
Kconfig NTB: switchtec_ntb: Introduce initial NTB driver 2017-11-18 20:37:12 -05:00
Makefile NTB: switchtec_ntb: Introduce initial NTB driver 2017-11-18 20:37:12 -05:00