net: netlink: minor: remove unused pointer in alloc_pg_vec
authorDaniel Borkmann <dborkman@redhat.com>
Fri, 2 Aug 2013 15:32:39 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Aug 2013 22:26:12 +0000 (15:26 -0700)
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>
net/netlink/af_netlink.c

index 0c61b59175dca5d9276c0fa65489d22cec39b435..6273772aa30c74d6aa5b90d4f6ac94a2f9cebd7b 100644 (file)
@@ -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;
        }