agp/uninorth: remove unused local variable 'size'
PATCH 1/1 agp/uninorth: remove unused local variable 'size'
Fixes the following W=1 kernel build warning:
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]
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zhen Lei <[email protected]>
--- drivers/char/agp/uninorth-agp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/char/agp/uninorth-agp.c +1 -3
@@ -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,9 @@ 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 ; + 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;
Signature · 1 line
1.8.3