From patchwork Thu Sep 12 16:41:29 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: zhong jiang X-Patchwork-Id: 11143401 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 248DD924 for ; Thu, 12 Sep 2019 16:45:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E20D208E4 for ; Thu, 12 Sep 2019 16:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733277AbfILQow (ORCPT ); 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 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(-)