netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] atm: iphase: remove redundant pointer skb
@ 2022-01-12 23:55 Colin Ian King
  2022-01-13 13:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Colin Ian King @ 2022-01-12 23:55 UTC (permalink / raw)
  To: Chas Williams, linux-atm-general, netdev
  Cc: kernel-janitors, linux-kernel, llvm

The pointer skb is redundant, it is assigned a value that is never
read and hence can be removed. Cleans up clang scan warning:

drivers/atm/iphase.c:205:18: warning: Although the value stored
to 'skb' is used in the enclosing expression, the value is never
actually read from 'skb' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 drivers/atm/iphase.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c
index bc8e8d9f176b..3e726ee91fdc 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -178,7 +178,6 @@ static void ia_hack_tcq(IADEV *dev) {
 
 static u16 get_desc (IADEV *dev, struct ia_vcc *iavcc) {
   u_short 		desc_num, i;
-  struct sk_buff        *skb;
   struct ia_vcc         *iavcc_r = NULL; 
   unsigned long delta;
   static unsigned long timer = 0;
@@ -202,8 +201,7 @@ static u16 get_desc (IADEV *dev, struct ia_vcc *iavcc) {
            else 
               dev->ffL.tcq_rd -= 2;
            *(u_short *)(dev->seg_ram + dev->ffL.tcq_rd) = i+1;
-           if (!(skb = dev->desc_tbl[i].txskb) || 
-                          !(iavcc_r = dev->desc_tbl[i].iavcc))
+           if (!dev->desc_tbl[i].txskb || !(iavcc_r = dev->desc_tbl[i].iavcc))
               printk("Fatal err, desc table vcc or skb is NULL\n");
            else 
               iavcc_r->vc_desc_cnt--;
-- 
2.33.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] atm: iphase: remove redundant pointer skb
  2022-01-12 23:55 [PATCH] atm: iphase: remove redundant pointer skb Colin Ian King
@ 2022-01-13 13:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-01-13 13:00 UTC (permalink / raw)
  To: Colin Ian King
  Cc: 3chas3, linux-atm-general, netdev, kernel-janitors, linux-kernel,
	llvm

Hello:

This patch was applied to netdev/net.git (master)
by David S. Miller <davem@davemloft.net>:

On Wed, 12 Jan 2022 23:55:33 +0000 you wrote:
> The pointer skb is redundant, it is assigned a value that is never
> read and hence can be removed. Cleans up clang scan warning:
> 
> drivers/atm/iphase.c:205:18: warning: Although the value stored
> to 'skb' is used in the enclosing expression, the value is never
> actually read from 'skb' [deadcode.DeadStores]
> 
> [...]

Here is the summary with links:
  - atm: iphase: remove redundant pointer skb
    https://git.kernel.org/netdev/net/c/d7b430341102

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-01-13 13:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-12 23:55 [PATCH] atm: iphase: remove redundant pointer skb Colin Ian King
2022-01-13 13:00 ` patchwork-bot+netdevbpf

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).