summaryrefslogtreecommitdiff
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2021-06-18 09:14:58 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-06-18 14:10:02 +0300
commitf8b6b327aa73dd69577abd4e164447a9cc124315 (patch)
tree71b9aa0da6ddb2d27d993242fd069cd63072f4c0 /kernel/sysctl.c
parent13d4aba8a9747c5f88e537cc065a511fe64f92eb (diff)
downloadlinux-f8b6b327aa73dd69577abd4e164447a9cc124315.tar.xz
mxser: alloc struct mxser_board dynamically
There is no need to preallocate an array of four struct mxser_board's. In most cases a single board or two will be present in a machine. So allocate struct mxser_board as needed in ->probe. This makes mxser_boards a bit array. There we store which indexes are free (unallocated). Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210618061516.662-53-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/sysctl.c')
0 files changed, 0 insertions, 0 deletions