Message ID | b42eff9b8f73542bc9015948e5e4684416982e1b.1667308828.git.drv@mailo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2978393wru; Tue, 1 Nov 2022 06:52:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM51T2QedIhBbxilA3FWMZMeLcFbFrhxW0JUY+F5o4+7au4FI6C7RYYEL+7x9cEbmVcFCCXm X-Received: by 2002:a17:907:a423:b0:7ad:b5f1:8ff8 with SMTP id sg35-20020a170907a42300b007adb5f18ff8mr15889452ejc.241.1667310762288; Tue, 01 Nov 2022 06:52:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667310762; cv=none; d=google.com; s=arc-20160816; b=xkfY895LscdCke3UiTn83FrxQ0hsXHMu6xBP/z1D+tgczz7NPXwl+4EKps6/f21NEo mAdzDErb+9vWjWThPseIyK55tAl/zyeTNjIapkik654tfFFN7FrsdGzfNgr/sriB0x2t hI1V6J+Num9V4Ajy5NdWitbXH7Ykajqp6QZUc9kCPMMKeJ4YcaKQWNJlUM5sABLmg58K YXTI4av1IXix8UDsbv1CH5GNn8zlUzxDGbFfyALMUBKvFP2gJV2stDo27dZKeKqTtn86 0vnazEWScUiLuwbuZ33Q1zwWuz9A3jNoXrUMfp1A2JdOl9yJCdTN8ZtzExAZnkVZl7mJ +4Kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:to:from:date:dkim-signature; bh=/8NaNHh0ObMxKID8oPRTejrQNGKmGChb/y2aR0FOgCs=; b=fA0qPyCz2KXOfgujjecmk7VtHq30YuNSIB9Gif4pj+cQO1kQ3Oe34HZuzjpIOOeApL wriEFZZ4UPShQUSExHmAws6ez9hXl5pTkMLpbhHsmUZsfczqzBaYwOFBLbbcbEgzx0mK mQZa+/ycTrVZQOpndC0tY4T9zY9VaoMo/Vg5wX5bTiKDWWUcGASr0mfSm+5XfglCv4DM hiiBCVfQGVd6zcGNfMhNzOARTDfbwShm0S5FMWr3bkL7+4eOeWeVA0jXKISM0uwmurhB Xw48e2j4NdgGpH2ugrgIMDDRtDMHzkf0APttdzZhQoN+KfhvrA8okhGIdXBQPwFfSjVM WRDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=gK9A2sJR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s4-20020a17090699c400b0078d4cf8de04si11755894ejn.380.2022.11.01.06.52.18; Tue, 01 Nov 2022 06:52:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@mailo.com header.s=mailo header.b=gK9A2sJR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mailo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230072AbiKANuX (ORCPT <rfc822;kartikey406@gmail.com> + 99 others); Tue, 1 Nov 2022 09:50:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49052 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230122AbiKANuI (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 1 Nov 2022 09:50:08 -0400 Received: from msg-1.mailo.com (msg-1.mailo.com [213.182.54.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BA44614F for <linux-kernel@vger.kernel.org>; Tue, 1 Nov 2022 06:50:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mailo.com; s=mailo; t=1667310597; bh=8G8ijNpzwZYatDZANaufMBhLpqqvE5uH9B3jRw4pOhY=; h=X-EA-Auth:Date:From:To:Subject:Message-ID:References:MIME-Version: Content-Type:In-Reply-To; b=gK9A2sJRRps4UWAIDEHosJmKh9OD7mP3p0gT9bezi4UTuzaAKiBEZaIoHGofN0NuL Cb+v7BwGGrmF+xZJ9s0drzohIy6G6e1YInWzk1ZmlQHQ6gKZhSzGS+MUnQYo0e6tLr nhdIM37Wiv9n/FIbhoHU8rF7eUzlDeJD8Dd/ofog= Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via [213.182.55.206] Tue, 1 Nov 2022 14:49:57 +0100 (CET) X-EA-Auth: erc4JnmKzL1p+tdhqH73lJrMemUhI3sHaSNaLbA9SpuJm69EGX8ipr5WtgnlWcNI72YacsbfxkMSKIccpnyGFcZZZiD7bJJf Date: Tue, 1 Nov 2022 19:19:54 +0530 From: Deepak R Varma <drv@mailo.com> To: outreachy@lists.linux.dev, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH v2 5/7] staging: wlan-ng: Remove unused struct p80211macarray definition Message-ID: <b42eff9b8f73542bc9015948e5e4684416982e1b.1667308828.git.drv@mailo.com> References: <cover.1667308828.git.drv@mailo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <cover.1667308828.git.drv@mailo.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748302050069179595?= X-GMAIL-MSGID: =?utf-8?q?1748302050069179595?= |
Series |
wlan-ng: Unused code clean-up patch set
|
|
Commit Message
Deepak R Varma
Nov. 1, 2022, 1:49 p.m. UTC
struct p80211macarray is defined but is never used. Remove the unused
struct declaration.
Issue identified as part of coccicheck based code analysis.
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Deepak R Varma <drv@mailo.com>
---
Changes in v2:
1. Include additional code clean-up opportunities and combine changes in a
patch set based on impact areas.
2. The patch changes are compile tested only on X86 arch.
drivers/staging/wlan-ng/p80211types.h | 6 ------
1 file changed, 6 deletions(-)
--
2.34.1
diff --git a/drivers/staging/wlan-ng/p80211types.h b/drivers/staging/wlan-ng/p80211types.h index 6486612a8f31..b2ed96960413 100644 --- a/drivers/staging/wlan-ng/p80211types.h +++ b/drivers/staging/wlan-ng/p80211types.h @@ -231,12 +231,6 @@ struct p80211pstr32 { u8 data[MAXLEN_PSTR32]; } __packed; -/* MAC address array */ -struct p80211macarray { - u32 cnt; - u8 data[1][MAXLEN_PSTR6]; -} __packed; - /* prototype template */ struct p80211item { u32 did;