Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1635779ybe; Tue, 3 Sep 2019 01:01:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5AM2TMzIE7OQ78FwBHY6hFJH5G5Me6mQ5tc6yi/CxawdIy91OoC9HercJ/5/Ew3hoSifn X-Received: by 2002:a17:90a:a6e:: with SMTP id o101mr17760515pjo.71.1567497673411; Tue, 03 Sep 2019 01:01:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567497673; cv=none; d=google.com; s=arc-20160816; b=xA4L47fwjI61adj0X2OAOCuNsJEz+kRvwEWBAgwtyCDIILm5SVcoSTqH2tw2H5ZgEE cgehoGMe1zHBV1KvYBfrUBum5+PGLzzcbGl7k1hV7qdlVwP5Z7X0aYXJvDlHSeIOrRcW yZ8H7PMVlMWYb2k72hBGlE4GN1AEnOT4X5dVr5Xl9DKOMLnfeOlpZpiPj3VexSuNw7Or D0mtLTi7NoK2+VJDlsWxjPY7q2mNiYAWc1QnHUqmOOdFI3Q3PFdmtC+LxIM4yP5JdhI+ to5U59RT/PpxTb7innHQgZY9LOEdKwhGFb9YA1gsjvQ+O4Iz97D/bPVOTaJh9d6f2f4w ik+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6GyCXVIUzoOuMZoTHkwsOz/Wzio/LUEYyX++UwTf62s=; b=vnB4CGPcSqW4c9VB8mEtV1fmzxE4NantQzajRjpRL3fwMGOsIjxixVAA8FBkGbr8xg yGqVQ6r4gp3nBBLEnhDp5Ruhj3MuqdUEKBOe53bmLRUVmLJ1Lgr6Wdfpbh3RK30P5J+W hygqC3o79za4crG69U40DDom1wVBXBChZZudCaCldwafUxog3U0xy/rFiELodqVCRc5K nvUef/lMcEhKxavS9gvllKd2ACZsstnQnzcsOCMQkSRkJKmqLKjl4tYubT520RU6CUY/ 7xC6MrK5RppwJm8sr7dSeM/FX+yuOFLXUUp81nCROSULdNqGGFB8HkuZ/fGLji2a9EdA sEcQ== 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 m15si15999888pfh.183.2019.09.03.01.00.49; Tue, 03 Sep 2019 01:01:13 -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 S1726946AbfICIAR (ORCPT + 99 others); Tue, 3 Sep 2019 04:00:17 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:56228 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725878AbfICIAR (ORCPT ); Tue, 3 Sep 2019 04:00:17 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 7FAAB650D523DD740224; Tue, 3 Sep 2019 16:00:13 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.439.0; Tue, 3 Sep 2019 16:00:05 +0800 From: zhong jiang To: , CC: , , , Subject: [PATCH] hostap: remove set but not used variable 'copied' in prism2_io_debug_proc_read Date: Tue, 3 Sep 2019 15:57:10 +0800 Message-ID: <1567497430-22539-1-git-send-email-zhongjiang@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org 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; -- 1.7.12.4