[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1648728460-37288-1-git-send-email-wangqing@vivo.com>
Date: Thu, 31 Mar 2022 05:07:38 -0700
From: Qing Wang <wangqing@...o.com>
To: Sebastian Reichel <sre@...nel.org>, linux-kernel@...r.kernel.org
Cc: Wang Qing <wangqing@...o.com>
Subject: [PATCH] hsi: clients: remove duplicate assignment
From: Wang Qing <wangqing@...o.com>
netdev_alloc_skb() has assigned ssi->netdev to skb->dev if successed,
no need to repeat assignment.
Signed-off-by: Wang Qing <wangqing@...o.com>
---
drivers/hsi/clients/ssi_protocol.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/hsi/clients/ssi_protocol.c b/drivers/hsi/clients/ssi_protocol.c
index 21f11a5..7aacb19
--- a/drivers/hsi/clients/ssi_protocol.c
+++ b/drivers/hsi/clients/ssi_protocol.c
@@ -796,7 +796,6 @@ static void ssip_rx_strans(struct hsi_client *cl, u32 cmd)
dev_err(&cl->device, "No memory for rx skb\n");
goto out1;
}
- skb->dev = ssi->netdev;
skb_put(skb, len * 4);
msg = ssip_alloc_data(ssi, skb, GFP_ATOMIC);
if (unlikely(!msg)) {
--
2.7.4
Powered by blists - more mailing lists