summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_nic.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-09-05 07:58:31 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-09-05 23:58:30 +0200
commit12d6f669717d8f1b7de5cb7409c362fd8a4f1d2d (patch)
tree0ea77e0215b1e05380d0ba9b0ebabd6154e34b8d /drivers/infiniband/hw/nes/nes_nic.c
parentRDMA/qedr: remove set but not used variable 'ctx' (diff)
downloadlinux-12d6f669717d8f1b7de5cb7409c362fd8a4f1d2d.tar.xz
linux-12d6f669717d8f1b7de5cb7409c362fd8a4f1d2d.zip
RDMA/nes: Delete impossible debug prints
The pci-core and net-core logic ensure that parameters provided to nes_probe() and nes_netdev_open() are valid, hence the assert print are not possible. Cc: Faisal Latif <faisal.latif@intel.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_nic.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_nic.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_nic.c b/drivers/infiniband/hw/nes/nes_nic.c
index 61014e251555..16f33454c198 100644
--- a/drivers/infiniband/hw/nes/nes_nic.c
+++ b/drivers/infiniband/hw/nes/nes_nic.c
@@ -146,8 +146,6 @@ static int nes_netdev_open(struct net_device *netdev)
struct list_head *list_pos, *list_temp;
unsigned long flags;
- assert(nesdev != NULL);
-
if (nesvnic->netdev_open == 1)
return 0;