diff options
author | John Garry <john.garry@huawei.com> | 2022-09-07 21:34:40 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-09-09 09:27:02 +0200 |
commit | 8b2818c7be7bc49133c50f384247e9164a225e3f (patch) | |
tree | 7cbff256711d60331e0cf137f496780ffd1da001 /drivers/infiniband/hw/irdma/utils.c | |
parent | a390bde7075451bf419777a94fc7a5106e6e7feb (diff) |
iova: Remove magazine BUG_ON() checks
Two of the magazine helpers have BUG_ON() checks, as follows:
- iova_magazine_pop() - here we ensure that the mag is not empty. However
we already ensure that in the only caller, __iova_rcache_get().
- iova_magazine_push() - here we ensure that the mag is not full. However
we already ensure that in the only caller, __iova_rcache_insert().
As described, the two bug checks are pointless so drop them.
Signed-off-by: John Garry <john.garry@huawei.com>
Acked-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/1662557681-145906-3-git-send-email-john.garry@huawei.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/infiniband/hw/irdma/utils.c')
0 files changed, 0 insertions, 0 deletions