From: Rasesh Mody Date: Sat, 18 Mar 2017 06:57:50 +0000 (-0700) Subject: net/qede/base: fix to use NULL pointer X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f2b852169b18677c9b8278388023075eb85ce3fb;p=dpdk.git net/qede/base: fix to use NULL pointer Use OSAL NULL where appropriate Fixes: 22d07d939c3c ("net/qede/base: update") Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/base/ecore_dev.c b/drivers/net/qede/base/ecore_dev.c index 318f3d2df8..da9cdc9a43 100644 --- a/drivers/net/qede/base/ecore_dev.c +++ b/drivers/net/qede/base/ecore_dev.c @@ -641,19 +641,20 @@ enum _ecore_status_t ecore_resc_alloc(struct ecore_dev *p_dev) ecore_cxt_get_proto_cid_count( p_hwfn, PROTOCOLID_ROCE, - 0); + OSAL_NULL); num_cons *= 2; } else { num_cons = ecore_cxt_get_proto_cid_count( p_hwfn, PROTOCOLID_IWARP, - 0); + OSAL_NULL); } n_eqes += num_cons + 2 * MAX_NUM_VFS_BB; } else if (p_hwfn->hw_info.personality == ECORE_PCI_ISCSI) { num_cons = ecore_cxt_get_proto_cid_count(p_hwfn, - PROTOCOLID_ISCSI, 0); + PROTOCOLID_ISCSI, + OSAL_NULL); n_eqes += 2 * num_cons; }