]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/cma: Simplify netdev check
authorParav Pandit <parav@mellanox.com>
Tue, 14 Nov 2017 12:52:01 +0000 (14:52 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Dec 2017 22:37:07 +0000 (15:37 -0700)
commit4367ec7fe2dd6f049f8bb558c86d54b438186729
tree59846adea8074a5cdc6f8b12f603a454e1df9e76
parent5c181bda77f409d89ad513528eccac5f3a416474
RDMA/cma: Simplify netdev check

Current code checks for NULL ndev twice where 2nd check is always
invalid given the fact that during route resolving stage, device address
must be bound to netdevice interface.

This patch simplifies such check.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cma.c