* [PATCH][next] carl9170: Remove redundant assignment to pointer super
@ 2024-02-07 17:15 Colin Ian King
2024-02-07 18:12 ` Kalle Valo
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Colin Ian King @ 2024-02-07 17:15 UTC (permalink / raw)
To: Christian Lamparter, Kalle Valo, linux-wireless
Cc: kernel-janitors, linux-kernel
The pointer super is being assigned a value that is not being read, it
is being re-assigned later. The assignment is redundant and can be
removed.
Cleans up clang scan warning:
drivers/net/wireless/ath/carl9170/tx.c:192:34: warning: Value stored to
'super' during its initialization is never read [deadcode.DeadStores]
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/net/wireless/ath/carl9170/tx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/carl9170/tx.c b/drivers/net/wireless/ath/carl9170/tx.c
index 6bb9aa2bfe65..e902ca80eba7 100644
--- a/drivers/net/wireless/ath/carl9170/tx.c
+++ b/drivers/net/wireless/ath/carl9170/tx.c
@@ -189,7 +189,7 @@ static void carl9170_tx_accounting_free(struct ar9170 *ar, struct sk_buff *skb)
static int carl9170_alloc_dev_space(struct ar9170 *ar, struct sk_buff *skb)
{
- struct _carl9170_tx_superframe *super = (void *) skb->data;
+ struct _carl9170_tx_superframe *super;
unsigned int chunks;
int cookie = -1;
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH][next] carl9170: Remove redundant assignment to pointer super
2024-02-07 17:15 [PATCH][next] carl9170: Remove redundant assignment to pointer super Colin Ian King
@ 2024-02-07 18:12 ` Kalle Valo
2024-02-07 21:32 ` Christian Lamparter
2024-02-14 8:16 ` Kalle Valo
2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2024-02-07 18:12 UTC (permalink / raw)
To: Colin Ian King
Cc: Christian Lamparter, linux-wireless, kernel-janitors,
linux-kernel
Colin Ian King <colin.i.king@gmail.com> writes:
> The pointer super is being assigned a value that is not being read, it
> is being re-assigned later. The assignment is redundant and can be
> removed.
>
> Cleans up clang scan warning:
> drivers/net/wireless/ath/carl9170/tx.c:192:34: warning: Value stored to
> 'super' during its initialization is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Same here, "wifi:" missing. I can add it, no need to resend because of
this.
--
https://patchwork.kernel.org/project/linux-wireless/list/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][next] carl9170: Remove redundant assignment to pointer super
2024-02-07 17:15 [PATCH][next] carl9170: Remove redundant assignment to pointer super Colin Ian King
2024-02-07 18:12 ` Kalle Valo
@ 2024-02-07 21:32 ` Christian Lamparter
2024-02-14 8:16 ` Kalle Valo
2 siblings, 0 replies; 4+ messages in thread
From: Christian Lamparter @ 2024-02-07 21:32 UTC (permalink / raw)
To: Colin Ian King, Kalle Valo, linux-wireless; +Cc: kernel-janitors, linux-kernel
On 2/7/24 18:15, Colin Ian King wrote:
> The pointer super is being assigned a value that is not being read, it
> is being re-assigned later. The assignment is redundant and can be
> removed.
>
> Cleans up clang scan warning:
> drivers/net/wireless/ath/carl9170/tx.c:192:34: warning: Value stored to
> 'super' during its initialization is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Christian Lamparter <chunkeey@gmail.com>
> ---
> drivers/net/wireless/ath/carl9170/tx.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/wireless/ath/carl9170/tx.c b/drivers/net/wireless/ath/carl9170/tx.c
> index 6bb9aa2bfe65..e902ca80eba7 100644
> --- a/drivers/net/wireless/ath/carl9170/tx.c
> +++ b/drivers/net/wireless/ath/carl9170/tx.c
> @@ -189,7 +189,7 @@ static void carl9170_tx_accounting_free(struct ar9170 *ar, struct sk_buff *skb)
>
> static int carl9170_alloc_dev_space(struct ar9170 *ar, struct sk_buff *skb)
> {
> - struct _carl9170_tx_superframe *super = (void *) skb->data;
> + struct _carl9170_tx_superframe *super;
> unsigned int chunks;
> int cookie = -1;
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH][next] carl9170: Remove redundant assignment to pointer super
2024-02-07 17:15 [PATCH][next] carl9170: Remove redundant assignment to pointer super Colin Ian King
2024-02-07 18:12 ` Kalle Valo
2024-02-07 21:32 ` Christian Lamparter
@ 2024-02-14 8:16 ` Kalle Valo
2 siblings, 0 replies; 4+ messages in thread
From: Kalle Valo @ 2024-02-14 8:16 UTC (permalink / raw)
To: Colin Ian King
Cc: Christian Lamparter, linux-wireless, kernel-janitors,
linux-kernel
Colin Ian King <colin.i.king@gmail.com> wrote:
> The pointer super is being assigned a value that is not being read, it
> is being re-assigned later. The assignment is redundant and can be
> removed.
>
> Cleans up clang scan warning:
>
> drivers/net/wireless/ath/carl9170/tx.c:192:34: warning: Value stored to
> 'super' during its initialization is never read [deadcode.DeadStores]
>
> Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
> Acked-by: Christian Lamparter <chunkeey@gmail.com>
> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
b53adefc884c wifi: carl9170: Remove redundant assignment to pointer super
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240207171524.2458418-1-colin.i.king@gmail.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-02-14 8:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-07 17:15 [PATCH][next] carl9170: Remove redundant assignment to pointer super Colin Ian King
2024-02-07 18:12 ` Kalle Valo
2024-02-07 21:32 ` Christian Lamparter
2024-02-14 8:16 ` Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).