aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2025-06-29 12:35:50 +0000
committerJakub Kicinski <[email protected]>2025-07-02 02:31:38 +0000
commita63b5a0bb740f64709a28200bf0788c7112be8fb (patch)
tree63b259d819d946131f3e1ddd196ca21fefb8973e /net/unix/sysctl_net_unix.c
parentnet: dsa: mv88e6xxx: Constify struct devlink_region_ops and struct mv88e6xxx_... (diff)
downloadkernel-a63b5a0bb740f64709a28200bf0788c7112be8fb.tar.gz
kernel-a63b5a0bb740f64709a28200bf0788c7112be8fb.zip
net: dsa: mv88e6xxx: Use kcalloc()
Use kcalloc() instead of hand writing it. This is less verbose. Also move the initialization of 'count' to save some LoC. On a x86_64, with allmodconfig, as an example: Before: ====== text data bss dec hex filename 18652 5920 64 24636 603c drivers/net/dsa/mv88e6xxx/devlink.o After: ===== text data bss dec hex filename 18498 5920 64 24482 5fa2 drivers/net/dsa/mv88e6xxx/devlink.o Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Andrew Lunn <[email protected]> Link: https://patch.msgid.link/2f4fca4ff84950da71e007c9169f18a0272476f3.1751200453.git.christophe.jaillet@wanadoo.fr Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions