From: Daniel Borkmann Date: Fri, 2 Aug 2013 15:32:39 +0000 (+0200) Subject: net: netlink: minor: remove unused pointer in alloc_pg_vec X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a849bb7f0ac513c2b7202620f611d94301c4a93;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: David S. Miller --- 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, { 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; }