[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4f13c537-5adb-cb38-5ba6-206699033849@users.sourceforge.net>
Date: Sat, 27 Jan 2018 22:20:24 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-rdma@...r.kernel.org,
Chien Tin Tung <chien.tin.tung@...el.com>,
Doug Ledford <dledford@...hat.com>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Jason Gunthorpe <jgg@...pe.ca>,
Johannes Berg <johannes.berg@...el.com>,
Leon Romanovsky <leonro@...lanox.com>,
Shiraz Saleem <shiraz.saleem@...el.com>,
Tatyana Nikolova <tatyana.e.nikolova@...el.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 2/3] RDMA/iwpm: Adjust a variable initialisation in
iwpm_create_nlmsg()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 27 Jan 2018 21:56:54 +0100
The local variable "skb" will be reassigned by a following statement.
Thus adjust the initialisation at the beginning.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/infiniband/core/iwpm_util.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/infiniband/core/iwpm_util.c b/drivers/infiniband/core/iwpm_util.c
index 9821ae900f6d..9eb527074c32 100644
--- a/drivers/infiniband/core/iwpm_util.c
+++ b/drivers/infiniband/core/iwpm_util.c
@@ -436,9 +436,8 @@ int iwpm_compare_sockaddr(struct sockaddr_storage *a_sockaddr,
struct sk_buff *iwpm_create_nlmsg(u32 nl_op, struct nlmsghdr **nlh,
int nl_client)
{
- struct sk_buff *skb = NULL;
+ struct sk_buff *skb = dev_alloc_skb(IWPM_MSG_SIZE);
- skb = dev_alloc_skb(IWPM_MSG_SIZE);
if (!skb)
goto create_nlmsg_exit;
--
2.16.1
Powered by blists - more mailing lists