]> 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)
commit91b6a6dc4039f150482b5489e1c46c052b2a2940
tree59846adea8074a5cdc6f8b12f603a454e1df9e76
parentc0cc40e96c78ba2d144e17b04f97a3f5a6a2a5b2
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