The destroy functions are always called with relevant structs, there is no
need to check their existence.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
u32 opcode = 0;
int ret;
- if (ib_cq == NULL)
- return 0;
-
nescq = to_nescq(ib_cq);
nesvnic = to_nesvnic(ib_cq->device);
nesdev = nesvnic->nesdev;
*/
void nes_destroy_ofa_device(struct nes_ib_device *nesibdev)
{
- if (nesibdev == NULL)
- return;
-
nes_unregister_ofa_device(nesibdev);
ib_dealloc_device(&nesibdev->ibdev);