Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1637444ybe; Tue, 3 Sep 2019 01:02:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqYcfLFMyD7VROYRF2Id3cd1J8HheB02OFzu51vNMBhsl3gLg/Ue4VucSK43455Jj3+Xii X-Received: by 2002:a17:90a:fc89:: with SMTP id ci9mr11223735pjb.48.1567497763153; Tue, 03 Sep 2019 01:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567497763; cv=none; d=google.com; s=arc-20160816; b=FjLxtAZLYOY0iWarBPwxlUaCUPCQ0oSg8k7Z3D5B5m1MSyidBYZFPkTv46bY4hpzwj kf/sOl++9meD9f/VMHoWrl8Atgf0Rij6dtnY5cS2B7lcNn9O5cjZlicd1asYjGwixazd dp0WygE4ZxNkDKEn9mhfOjh7DKY/MI492LOCKmXrjOjw3VmdwTK/zFaEKVPGM1I95mNi qIJUDF2fgptCEvVLS+0kJBMAjJbSvR0s80QlN38WGxHgc8hdqcKM2K2Z7yUFOlWbbv6R rqLgPeC+xN88OoIKtVfELGxCzyU7Uy6MPG3f0WGOyFA7nGlGHDMBAUO0cD2kLAV2Rn3X sA0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :references:subject:cc:to:mime-version:user-agent:from:date :message-id; bh=F+oIjqhu/cZgtJB/ilkqGKZg8EeBkZ/upk4tzbjoass=; b=aVebc/B1VCZviqGSPM71yNVbVaFP0id1PWYa/YDapBP4q6l8DVHRbkOnJwqUcPhQ3O Kj/jRrl8ygr+rF8+HBnrXL6tBm9cLU8xS5JTUXb/JXCCKM7b9d9ZQOYkkB8oyipwXLTx YoWlbDwEAabUzG/SnQB2YgSRb4WxjHKJsDWz9PPFVBiYpQ5AkWpKgFFPfH6B7rjPopqw BPol4ZIT9C8dEbClkJFaHzjBp4p+nT5EaGKz9/SmzMhWA1IqCBnQQ4Seoa/pN2/sGeOB ZYa4FMgg7EjfuLaA0Tg/yEqJIFsnTeoH3pNeJkrVepuRH69WqrOisI0efYJtggrmORDc q9vg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h12si13960914pls.334.2019.09.03.01.02.28; Tue, 03 Sep 2019 01:02:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727555AbfICICD (ORCPT + 99 others); Tue, 3 Sep 2019 04:02:03 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6186 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725888AbfICICD (ORCPT ); Tue, 3 Sep 2019 04:02:03 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id BB045C3910B109BDEAAD; Tue, 3 Sep 2019 16:02:00 +0800 (CST) Received: from [127.0.0.1] (10.177.29.68) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.439.0; Tue, 3 Sep 2019 16:01:55 +0800 Message-ID: <5D6E1DF2.1000109@huawei.com> Date: Tue, 3 Sep 2019 16:01:54 +0800 From: zhong jiang User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: zhong jiang CC: , , , , Subject: Re: [PATCH] hostap: remove set but not used variable 'copied' in prism2_io_debug_proc_read References: <1567497430-22539-1-git-send-email-zhongjiang@huawei.com> In-Reply-To: <1567497430-22539-1-git-send-email-zhongjiang@huawei.com> Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.29.68] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Please ignore the patch. Because the hostap_proc.c is marked as 'obsolete'. Thanks, zhong jiang On 2019/9/3 15:57, zhong jiang wrote: > Obviously, variable 'copied' is initialized to zero. But it is not used. > hence just remove it. > > Signed-off-by: zhong jiang > --- > drivers/net/wireless/intersil/hostap/hostap_proc.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/net/wireless/intersil/hostap/hostap_proc.c b/drivers/net/wireless/intersil/hostap/hostap_proc.c > index 703d74c..6151d8d 100644 > --- a/drivers/net/wireless/intersil/hostap/hostap_proc.c > +++ b/drivers/net/wireless/intersil/hostap/hostap_proc.c > @@ -234,7 +234,7 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off, > { > local_info_t *local = (local_info_t *) data; > int head = local->io_debug_head; > - int start_bytes, left, copy, copied; > + int start_bytes, left, copy; > > if (off + count > PRISM2_IO_DEBUG_SIZE * 4) { > *eof = 1; > @@ -243,7 +243,6 @@ static int prism2_io_debug_proc_read(char *page, char **start, off_t off, > count = PRISM2_IO_DEBUG_SIZE * 4 - off; > } > > - copied = 0; > start_bytes = (PRISM2_IO_DEBUG_SIZE - head) * 4; > left = count; >