Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp2597378ybe; Thu, 12 Sep 2019 11:51:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuwU5y4aOCROImbtkW1GQSKBKIwzZYauc3Mo0wN+Y5tcNGPKQymGdkAE6BcS8bnPGBv6JV X-Received: by 2002:a17:906:e01:: with SMTP id l1mr36189975eji.150.1568314310206; Thu, 12 Sep 2019 11:51:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568314310; cv=none; d=google.com; s=arc-20160816; b=ThUwBeP1Pkto6a11w/I+6b5zO0Mufq24FhMxUU5BMZ39DV7gyBldvp51O/L/ntEAWT WTeYsiAiIu9TGfblq245xsaaBgOMg00C7oLK3mKPM4jy23rNPeI9FkEPD3pgdo6rT5iI Pq/FgHYBSEj/HtOP+F5PShBkrjQhvUJJlGKVR8Uj0w5IdUsYjPhtaHI9hLPPiO/2kwWy ZmB2k0dfdgYOQ+NJNoQ/V7LXO41aYN3YhmBMCfGCJtWtmQfn9wPMF4NYprUW6fioTx2j mKIcoswu13DxKyl7UbjbHxfHrVHHXucgAuJoqWmQoeq8zOwB7wbY+YmLm1Y1iA10X02F IDYQ== 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=MziI2mL/q75Xuv56h++FOyPcPaUG5zZZANTxwQouCVY=; b=SIVu+2N2JDM9G2jRXOVCpr1xkP7x00MVOUO45HF0HUuqKYCT1ucRMkgP5BwOgFS/vr sTibMNVBm/hfL+eFpjDrEBH+9wS2LB4zQcmuk84KyFHdxKUZCLII01mDfy25mLYSJEf+ cth78oF0YaHMSTSZ1eJqOe1b89nd5TAiNsdFIpfH+4ae4LvdV8HoF7G2yoecDmjrmaUS aiEgcloNALaorgCM6Pvj/+oICiIIOSF1ROh9zM6vhD3koKtG8KNwxxqfBbZhzbyDSMx9 51SgplMRwB3DPIYS0tjyLMO/6/fMvVwSa0zPIU4N7+xTRRha+nEBCaokniuXfjBxXuN8 A/eQ== 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 dd11si13376266ejb.206.2019.09.12.11.51.25; Thu, 12 Sep 2019 11:51:50 -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 S1733274AbfILQow (ORCPT + 99 others); Thu, 12 Sep 2019 12:44:52 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:52378 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725972AbfILQow (ORCPT ); Thu, 12 Sep 2019 12:44:52 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 3EDD97724A098D8E9CEE; Fri, 13 Sep 2019 00:44:40 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.439.0; Fri, 13 Sep 2019 00:44:33 +0800 From: zhong jiang To: CC: , , , , Subject: [PATCH 0/3] wireless: Remove unneeded variable Date: Fri, 13 Sep 2019 00:41:29 +0800 Message-ID: <1568306492-42998-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 With the help of Coccinelle, I find some place to use redundant variable to store the return value, It is unnecessary. Just remove it and make the funtion to be void. zhong jiang (3): brcmsmac: Remove unneeded variable and make function to be void wlegacy: Remove unneeded variable and make function to be void libertas: Remove unneeded variable and make function to be void drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c | 5 +---- drivers/net/wireless/intel/iwlegacy/4965-mac.c | 8 ++------ drivers/net/wireless/marvell/libertas/cmd.h | 2 +- drivers/net/wireless/marvell/libertas/cmdresp.c | 5 +---- 4 files changed, 5 insertions(+), 15 deletions(-) -- 1.7.12.4