From: Philipp Hortmann <philipp.g.hortmann@gmail.com>
To: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH 2/5] staging: rtl8192e: Remove variable channel_map
Date: Fri, 8 Dec 2023 19:19:45 +0100 [thread overview]
Message-ID: <19ca762b4b9d5a3e857b31c22f0688324ca3bd9d.1701989555.git.philipp.g.hortmann@gmail.com> (raw)
In-Reply-To: <cover.1701989555.git.philipp.g.hortmann@gmail.com>
Remove variable channel_map as it is initialized but not used. Remove
channel_array as well as it is without channel_map unused.
Signed-off-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
---
drivers/staging/rtl8192e/dot11d.c | 10 ----------
drivers/staging/rtl8192e/dot11d.h | 1 -
2 files changed, 11 deletions(-)
diff --git a/drivers/staging/rtl8192e/dot11d.c b/drivers/staging/rtl8192e/dot11d.c
index d51d4afff61e..c44ff26e8d61 100644
--- a/drivers/staging/rtl8192e/dot11d.c
+++ b/drivers/staging/rtl8192e/dot11d.c
@@ -12,18 +12,8 @@ struct channel_list {
u8 len;
};
-static struct channel_list channel_array = {{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}, 13};
-
void dot11d_channel_map(struct rtllib_device *ieee)
{
- int i;
-
- memset(GET_DOT11D_INFO(ieee)->channel_map, 0,
- sizeof(GET_DOT11D_INFO(ieee)->channel_map));
- for (i = 0; i < channel_array.len; i++)
- GET_DOT11D_INFO(ieee)->channel_map[channel_array.channel[i]] = 1;
- for (i = 12; i <= 13; i++)
- GET_DOT11D_INFO(ieee)->channel_map[i] = 2;
}
EXPORT_SYMBOL(dot11d_channel_map);
diff --git a/drivers/staging/rtl8192e/dot11d.h b/drivers/staging/rtl8192e/dot11d.h
index 5c02e51c39cd..d047283f2ceb 100644
--- a/drivers/staging/rtl8192e/dot11d.h
+++ b/drivers/staging/rtl8192e/dot11d.h
@@ -19,7 +19,6 @@
*/
struct rt_dot11d_info {
- u8 channel_map[MAX_CHANNEL_NUMBER + 1];
};
#define GET_DOT11D_INFO(__ieee_dev) \
--
2.43.0
next prev parent reply other threads:[~2023-12-08 18:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-08 18:19 [PATCH 0/5] staging: rtl8192e: Remove c files dot11d.c/.h Philipp Hortmann
2023-12-08 18:19 ` [PATCH 1/5] staging: rtl8192e: Remove function rtllib_update_active_chan_map() Philipp Hortmann
2023-12-08 18:19 ` Philipp Hortmann [this message]
2023-12-08 18:19 ` [PATCH 3/5] staging: rtl8192e: Remove variable dot11d_info Philipp Hortmann
2023-12-08 18:19 ` [PATCH 4/5] staging: rtl8192e: Remove function dot11d_channel_map() Philipp Hortmann
2023-12-08 18:20 ` [PATCH 5/5] staging: rtl8192e: Remove files dot11d.c and dot11d.h Philipp Hortmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19ca762b4b9d5a3e857b31c22f0688324ca3bd9d.1701989555.git.philipp.g.hortmann@gmail.com \
--to=philipp.g.hortmann@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-staging@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®