Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp754059ybg; Wed, 23 Oct 2019 05:30:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxAevO8WevT7wNFgb3hzv+Y6nazz8AYht4/Lfmi4olBuWOxi5PL4/xuVmfubIM5ByFifxD6 X-Received: by 2002:a17:907:2139:: with SMTP id qo25mr7712964ejb.207.1571833825132; Wed, 23 Oct 2019 05:30:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571833825; cv=none; d=google.com; s=arc-20160816; b=bHrs7Tz6YUSRCnPz6XIlTU4+LfNS2lJoEIcIXXXa7cWRM4SXlIAhSIcRw1gjMGz4Jr 0C/ygk94BfWm3CLcQTKVxOnePdt6yLC9PYI9K9QWfTvVI+HR5x5ZWMypt1eDMfmkAL/r XZcfGKsscQ4GmMyt63CF8iLf0nwoV2Rubp57gtM0TTOpG1ah/ClyZGEh50zFTkaiuGKP JFwbq1DSx1LWT+27iTH/hElmCe3qadRzlT1Ohk+VywZpb76nKScR0EaaZL+tYO7HgyGN DZ1b6DvfXU10pWzVwwMf466xiF+jndbsWFKxiqqmuodJAxecHIMaibVt5xn4mTMMkYbd oHCA== 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=WpBAm9nsi5NX9kxm1ipkktGAr9p2uUgsZjuN4I3UFEk=; b=zSJobJwBLZw1vpn0cR3iAR+et5kOxTI9WIKZGxNcK8vqulv6hILLNRsHA7lsGL9wuL NUB5nOlbM9iFwcPVo7Ncmtp8QuGKTbPpZ2tExSOSa+MzGWTr/P1YgdD4NIieB4IpGZnr kBCREYODRS8IpJBOlDLx4+nkJhiskSMFLD2VkmhP2aA8NPx987DuL+BEL7Yblk4kIRXM yRfUp4KTAxfba7AEZrv9PElPIynmT6tOIKgALfg48V5+S6+AvJ7XhPwlUWc1jJfqIk3r cQyFvrNFdhcllF+REloEYGXqt+Sk2xIc2wSfr88U7HYmm8YzBh30HYKls0MkidcYgYp6 MQMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 u3si13843002edy.48.2019.10.23.05.30.01; Wed, 23 Oct 2019 05:30:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389691AbfJWHGk (ORCPT + 99 others); Wed, 23 Oct 2019 03:06:40 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:59022 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727574AbfJWHGk (ORCPT ); Wed, 23 Oct 2019 03:06:40 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 83A6368F26DAF8233C58; Wed, 23 Oct 2019 15:06:36 +0800 (CST) Received: from localhost (10.133.213.239) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.439.0; Wed, 23 Oct 2019 15:06:26 +0800 From: YueHaibing To: , , , CC: , , , YueHaibing Subject: [PATCH net-next] ieee802154: remove set but not used variable 'status' Date: Wed, 23 Oct 2019 15:06:18 +0800 Message-ID: <20191023070618.30044-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.10.2.windows.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.133.213.239] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/net/ieee802154/cc2520.c:221:5: warning: variable status set but not used [-Wunused-but-set-variable] It is never used, so can be removed. Signed-off-by: YueHaibing --- drivers/net/ieee802154/cc2520.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/ieee802154/cc2520.c b/drivers/net/ieee802154/cc2520.c index 4350694..89c046b 100644 --- a/drivers/net/ieee802154/cc2520.c +++ b/drivers/net/ieee802154/cc2520.c @@ -218,7 +218,6 @@ static int cc2520_cmd_strobe(struct cc2520_private *priv, u8 cmd) { int ret; - u8 status = 0xff; struct spi_message msg; struct spi_transfer xfer = { .len = 0, @@ -236,8 +235,6 @@ cc2520_cmd_strobe(struct cc2520_private *priv, u8 cmd) priv->buf[0]); ret = spi_sync(priv->spi, &msg); - if (!ret) - status = priv->buf[0]; dev_vdbg(&priv->spi->dev, "buf[0] = %02x\n", priv->buf[0]); mutex_unlock(&priv->buffer_mutex); -- 2.7.4