ofed: for pointers replace 0 with NULL.

These are mostly cosmetical, no functional change.

Found with devel/coccinelle.
Reviewed by:	hselasky
This commit is contained in:
Pedro F. Giffuni 2016-04-15 12:16:15 +00:00
parent c1a43e73c5
commit d4a2eaef39
2 changed files with 2 additions and 2 deletions

View File

@ -1297,7 +1297,7 @@ static int del_gid_entry(struct ib_qp *ibqp, union ib_gid *gid)
pr_warn("could not find mgid entry\n");
mutex_unlock(&mqp->mutex);
return ge != 0 ? 0 : -EINVAL;
return ge != NULL ? 0 : -EINVAL;
}
static int _mlx4_ib_mcg_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid,

View File

@ -1485,7 +1485,7 @@ ipoib_resolvemulti(struct ifnet *ifp, struct sockaddr **llsa,
e_addr = LLADDR(sdl);
if (!IPOIB_IS_MULTICAST(e_addr))
return EADDRNOTAVAIL;
*llsa = 0;
*llsa = NULL;
return 0;
#ifdef INET