mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] ethernet: liquidio: Remove unnecessary memset
@ 2025-08-07 12:40 Liao Yuanhong
  2025-08-07 19:58 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Liao Yuanhong @ 2025-08-07 12:40 UTC (permalink / raw)
  To: Andrew Lunn, David S. Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Dr. David Alan Gilbert, Simon Horman,
	open list:CAVIUM LIQUIDIO NETWORK DRIVER, open list
  Cc: Liao Yuanhong

vzalloc_node() or vzalloc() has already been initialized to full 0 space,
there is no need to use memset() to initialize again.

Signed-off-by: Liao Yuanhong <liaoyuanhong@vivo.com>
---
 drivers/net/ethernet/cavium/liquidio/octeon_device.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/net/ethernet/cavium/liquidio/octeon_device.c b/drivers/net/ethernet/cavium/liquidio/octeon_device.c
index 1753bb87dfbd..4d7d7a4da92e 100644
--- a/drivers/net/ethernet/cavium/liquidio/octeon_device.c
+++ b/drivers/net/ethernet/cavium/liquidio/octeon_device.c
@@ -893,7 +893,6 @@ int octeon_setup_instr_queues(struct octeon_device *oct)
 			vzalloc(sizeof(struct octeon_instr_queue));
 	if (!oct->instr_queue[0])
 		return 1;
-	memset(oct->instr_queue[0], 0, sizeof(struct octeon_instr_queue));
 	oct->instr_queue[0]->q_index = 0;
 	oct->instr_queue[0]->app_ctx = (void *)(size_t)0;
 	oct->instr_queue[0]->ifidx = 0;
-- 
2.34.1


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

end of thread, other threads:[~2025-08-07 19:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-08-07 12:40 [PATCH] ethernet: liquidio: Remove unnecessary memset Liao Yuanhong
2025-08-07 19:58 ` Simon Horman

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®