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:
parent
c1a43e73c5
commit
d4a2eaef39
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298046
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user