summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-01-27 20:06:59 +0100
committerJason Gunthorpe <jgg@mellanox.com>2018-02-28 13:57:39 -0700
commitb7c5bc73680dfcb1bdc3a1c77c0344f045ac017d (patch)
tree944268cea412d968d5c01cbfbd2b9c4f106289b5
parent55de9a77daf3064e4f49296260d975885b574663 (diff)
downloadop-kernel-dev-b7c5bc73680dfcb1bdc3a1c77c0344f045ac017d.zip
op-kernel-dev-b7c5bc73680dfcb1bdc3a1c77c0344f045ac017d.tar.gz
IB/usnic: Delete an error message for a failed memory allocation in usnic_transport_init()
Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
-rw-r--r--drivers/infiniband/hw/usnic/usnic_transport.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/usnic/usnic_transport.c b/drivers/infiniband/hw/usnic/usnic_transport.c
index de31838..2e9bba5 100644
--- a/drivers/infiniband/hw/usnic/usnic_transport.c
+++ b/drivers/infiniband/hw/usnic/usnic_transport.c
@@ -201,10 +201,8 @@ int usnic_transport_sock_get_addr(struct socket *sock, int *proto,
int usnic_transport_init(void)
{
roce_bitmap = kzalloc(ROCE_BITMAP_SZ, GFP_KERNEL);
- if (!roce_bitmap) {
- usnic_err("Failed to allocate bit map");
+ if (!roce_bitmap)
return -ENOMEM;
- }
/* Do not ever allocate bit 0, hence set it here */
bitmap_set(roce_bitmap, 0, 1);
OpenPOWER on IntegriCloud