Commit c7ec8377 authored by Markus Elfring's avatar Markus Elfring Committed by Jason Gunthorpe

RDMA/iwpm: Delete an error message for a failed memory allocation in iwpm_create_nlmsg()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarJason Gunthorpe <jgg@mellanox.com>
parent b7c5bc73
...@@ -439,10 +439,9 @@ struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh, ...@@ -439,10 +439,9 @@ struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,
struct sk_buff *skb = NULL; struct sk_buff *skb = NULL;
skb = dev_alloc_skb(IWPM_MSG_SIZE); skb = dev_alloc_skb(IWPM_MSG_SIZE);
if (!skb) { if (!skb)
pr_err("%s Unable to allocate skb\n", __func__);
goto create_nlmsg_exit; goto create_nlmsg_exit;
}
if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op, if (!(ibnl_put_msg(skb, nlh, 0, 0, nl_client, nl_op,
NLM_F_REQUEST))) { NLM_F_REQUEST))) {
pr_warn("%s: Unable to put the nlmsg header\n", __func__); pr_warn("%s: Unable to put the nlmsg header\n", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment