[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c40f9df5-0637-4c47-1f79-ff4b5bedbab1@huawei.com>
Date: Mon, 7 Jun 2021 17:11:35 +0800
From: "yukuai (C)" <yukuai3@...wei.com>
To: <airlied@...ux.ie>
CC: <linux-kernel@...r.kernel.org>, <yi.zhang@...wei.com>
Subject: Re: [PATCH] agp: remove set but not used variable 'current_size'
ping ...
On 2021/05/29 17:05, yukuai (C) wrote:
> ping...
>
> On 2021/05/14 14:22, Yu Kuai wrote:
>> Fixes gcc '-Wunused-but-set-variable' warning:
>>
>> drivers/char/agp/via-agp.c:131:28: warning: variable ‘current_size’
>> set but not used [-Wunused-but-set-variable]
>>
>> It is never used, and so can be removed.
>>
>> Signed-off-by: Yu Kuai <yukuai3@...wei.com>
>> ---
>> drivers/char/agp/via-agp.c | 3 ---
>> 1 file changed, 3 deletions(-)
>>
>> diff --git a/drivers/char/agp/via-agp.c b/drivers/char/agp/via-agp.c
>> index 87a92a044570..dc594f4eca38 100644
>> --- a/drivers/char/agp/via-agp.c
>> +++ b/drivers/char/agp/via-agp.c
>> @@ -128,9 +128,6 @@ static int via_fetch_size_agp3(void)
>> static int via_configure_agp3(void)
>> {
>> u32 temp;
>> - struct aper_size_info_16 *current_size;
>> -
>> - current_size = A_SIZE_16(agp_bridge->current_size);
>> /* address to map to */
>> agp_bridge->gart_bus_addr = pci_bus_address(agp_bridge->dev,
>>
Powered by blists - more mailing lists