]> Gentwo Git Trees - linux/.git/commit
net/sched: Remove redundant memset(0) call in reset_policy()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 11 Aug 2025 16:40:38 +0000 (18:40 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Aug 2025 00:13:29 +0000 (17:13 -0700)
commitb3ba7d929ce197ff2651046798b94bd62eb0e680
tree5c3bda5c983af15972a69b0e8b03b086d9970a47
parent86e3d52bd3e919181d5f7e5107065d16e694c8d8
net/sched: Remove redundant memset(0) call in reset_policy()

The call to nla_strscpy() already zero-pads the tail of the destination
buffer which makes the additional memset(0) call redundant. Remove it.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Joe Damato <joe@dama.to>
Link: https://patch.msgid.link/20250811164039.43250-1-thorsten.blum@linux.dev
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/act_simple.c