diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-08-02 11:32:39 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-08-02 18:26:12 -0400 |
commit | 8a849bb7f0ac513c2b7202620f611d94301c4a93 (patch) | |
tree | c40c07432b7fb99a5b7a96e6cc7ba07cdee8e42f /net/netlink | |
parent | 6ef94cfafba159d6b1a902ccb3349ac6a34ff6ad (diff) |
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>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 0c61b59175dc..6273772aa30c 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, | |||
294 | { | 294 | { |
295 | unsigned int block_nr = req->nm_block_nr; | 295 | unsigned int block_nr = req->nm_block_nr; |
296 | unsigned int i; | 296 | unsigned int i; |
297 | void **pg_vec, *ptr; | 297 | void **pg_vec; |
298 | 298 | ||
299 | pg_vec = kcalloc(block_nr, sizeof(void *), GFP_KERNEL); | 299 | pg_vec = kcalloc(block_nr, sizeof(void *), GFP_KERNEL); |
300 | if (pg_vec == NULL) | 300 | if (pg_vec == NULL) |
301 | return NULL; | 301 | return NULL; |
302 | 302 | ||
303 | for (i = 0; i < block_nr; i++) { | 303 | for (i = 0; i < block_nr; i++) { |
304 | pg_vec[i] = ptr = alloc_one_pg_vec_page(order); | 304 | pg_vec[i] = alloc_one_pg_vec_page(order); |
305 | if (pg_vec[i] == NULL) | 305 | if (pg_vec[i] == NULL) |
306 | goto err1; | 306 | goto err1; |
307 | } | 307 | } |