summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-08-02 17:32:39 +0200
committerDavid S. Miller <davem@davemloft.net>2013-08-02 15:26:12 -0700
commit8a849bb7f0ac513c2b7202620f611d94301c4a93 (patch)
treec40c07432b7fb99a5b7a96e6cc7ba07cdee8e42f
parent6ef94cfafba159d6b1a902ccb3349ac6a34ff6ad (diff)
downloadop-kernel-dev-8a849bb7f0ac513c2b7202620f611d94301c4a93.zip
op-kernel-dev-8a849bb7f0ac513c2b7202620f611d94301c4a93.tar.gz
net: netlink: minor: remove unused pointer in alloc_pg_vec
Variable ptr is being assigned, but never used, so just remove it. Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/netlink/af_netlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c
index 0c61b59..6273772 100644
--- a/net/netlink/af_netlink.c
+++ b/net/netlink/af_netlink.c
@@ -294,14 +294,14 @@ static void **alloc_pg_vec(struct netlink_sock *nlk,
{
unsigned int block_nr = req->nm_block_nr;
unsigned int i;
- void **pg_vec, *ptr;
+ void **pg_vec;
pg_vec = kcalloc(block_nr, sizeof(void *), GFP_KERNEL);
if (pg_vec == NULL)
return NULL;
for (i = 0; i < block_nr; i++) {
- pg_vec[i] = ptr = alloc_one_pg_vec_page(order);
+ pg_vec[i] = alloc_one_pg_vec_page(order);
if (pg_vec[i] == NULL)
goto err1;
}
OpenPOWER on IntegriCloud