diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-06-18 09:14:58 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-06-18 14:10:02 +0300 |
commit | f8b6b327aa73dd69577abd4e164447a9cc124315 (patch) | |
tree | 71b9aa0da6ddb2d27d993242fd069cd63072f4c0 /net/xfrm | |
parent | 13d4aba8a9747c5f88e537cc065a511fe64f92eb (diff) | |
download | linux-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 'net/xfrm')
0 files changed, 0 insertions, 0 deletions