]> git.baikalelectronics.ru Git - kernel.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)
commita366c2ff46b2033b062d9452e725efa0dcddd6eb
tree59846adea8074a5cdc6f8b12f603a454e1df9e76
parent571766b9635cfc893dddbb30376432f413d5f93b
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