mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
staging: rtl8192u: make array queuetopipe static const
Don't populate the array queuetopipe on the stack but instead make it static const. Also makes the object code smaller by ~50 bytes. Signed-off-by: Colin Ian King <colin.i.king@gmail.com> Link: https://lore.kernel.org/r/20211129225013.524016-1-colin.i.king@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7988cf07e7
commit
f47b40a4fa
1 changed files with 2 additions and 2 deletions
|
@ -2531,13 +2531,13 @@ static short rtl8192_init(struct net_device *dev)
|
||||||
#ifdef PIPE12
|
#ifdef PIPE12
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
u8 queuetopipe[] = {3, 2, 1, 0, 4, 8, 7, 6, 5};
|
static const u8 queuetopipe[] = {3, 2, 1, 0, 4, 8, 7, 6, 5};
|
||||||
|
|
||||||
memcpy(priv->txqueue_to_outpipemap, queuetopipe, 9);
|
memcpy(priv->txqueue_to_outpipemap, queuetopipe, 9);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
{
|
{
|
||||||
u8 queuetopipe[] = {3, 2, 1, 0, 4, 4, 0, 4, 4};
|
const u8 queuetopipe[] = {3, 2, 1, 0, 4, 4, 0, 4, 4};
|
||||||
|
|
||||||
memcpy(priv->txqueue_to_outpipemap, queuetopipe, 9);
|
memcpy(priv->txqueue_to_outpipemap, queuetopipe, 9);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue