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>
This commit is contained in:
parent
55de9a77da
commit
b7c5bc7368
|
@ -201,10 +201,8 @@ int usnic_transport_sock_get_addr(struct socket *sock, int *proto,
|
||||||
int usnic_transport_init(void)
|
int usnic_transport_init(void)
|
||||||
{
|
{
|
||||||
roce_bitmap = kzalloc(ROCE_BITMAP_SZ, GFP_KERNEL);
|
roce_bitmap = kzalloc(ROCE_BITMAP_SZ, GFP_KERNEL);
|
||||||
if (!roce_bitmap) {
|
if (!roce_bitmap)
|
||||||
usnic_err("Failed to allocate bit map");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
/* Do not ever allocate bit 0, hence set it here */
|
/* Do not ever allocate bit 0, hence set it here */
|
||||||
bitmap_set(roce_bitmap, 0, 1);
|
bitmap_set(roce_bitmap, 0, 1);
|
||||||
|
|
Loading…
Reference in New Issue