[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210520121347.3467794-15-lee.jones@linaro.org>
Date: Thu, 20 May 2021 13:13:45 +0100
From: Lee Jones <lee.jones@...aro.org>
To: lee.jones@...aro.org
Cc: linux-kernel@...r.kernel.org, David Airlie <airlied@...ux.ie>,
Jerome Glisse <j.glisse@...il.com>
Subject: [PATCH 14/16] char: agp: uninorth-agp: Remove unused variable 'size'
Fixes the following W=1 kernel build warning(s):
drivers/char/agp/uninorth-agp.c: In function ‘uninorth_create_gatt_table’:
drivers/char/agp/uninorth-agp.c:372:6: warning: variable ‘size’ set but not used [-Wunused-but-set-variable]
Cc: David Airlie <airlied@...ux.ie>
Cc: Jerome Glisse <j.glisse@...il.com>
Signed-off-by: Lee Jones <lee.jones@...aro.org>
---
drivers/char/agp/uninorth-agp.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c
index 62de7f4ba8643..ee67d587cad1e 100644
--- a/drivers/char/agp/uninorth-agp.c
+++ b/drivers/char/agp/uninorth-agp.c
@@ -369,7 +369,6 @@ static int uninorth_create_gatt_table(struct agp_bridge_data *bridge)
{
char *table;
char *table_end;
- int size;
int page_order;
int num_entries;
int i;
@@ -383,10 +382,8 @@ static int uninorth_create_gatt_table(struct agp_bridge_data *bridge)
table = NULL;
i = bridge->aperture_size_idx;
temp = bridge->current_size;
- size = page_order = num_entries = 0;
do {
- size = A_SIZE_32(temp)->size;
page_order = A_SIZE_32(temp)->page_order;
num_entries = A_SIZE_32(temp)->num_entries;
--
2.31.1
Powered by blists - more mailing lists