diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2021-05-04 16:22:34 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-05-13 20:50:23 +0200 |
commit | 640d1eaff2c09e382a23bd831094ebbfaa16fef5 (patch) | |
tree | 3b081de7f657cbfb2aeeed57f1333c406f6afe1f /lib/crc4.c | |
parent | ced081a436d21a7d34d4d42acb85058f9cf423f2 (diff) | |
download | linux-640d1eaff2c09e382a23bd831094ebbfaa16fef5.tar.gz |
dyndbg: avoid calling dyndbg_emit_prefix when it has no work
Wrap function in a static-inline one, which checks flags to avoid calling the function unnecessarily. And hoist its output-buffer initialization to the grand-caller, which is already allocating the buffer on the stack, and can trivially initialize it too. Signed-off-by: Jim Cromie <jim.cromie@gmail.com> Link: https://lore.kernel.org/r/20210504222235.1033685-2-jim.cromie@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/crc4.c')
0 files changed, 0 insertions, 0 deletions