dyndbg: prefer declarative init in caller, to memset in callee
authorJim Cromie <jim.cromie@gmail.com>
Sun, 19 Jul 2020 23:10:49 +0000 (17:10 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Jul 2020 15:00:09 +0000 (17:00 +0200)
commit9c9d0acbe2793315fa6945a19685ad2a51fb281b
tree111d57017f676b713e97ea80f09981994fa7443d
parent0b8f96be9bd41521b6379b403cfce78934f8274c
dyndbg: prefer declarative init in caller, to memset in callee

ddebug_exec_query declares an auto var, and passes it to
ddebug_parse_query, which memsets it before using it.  Drop that
memset, instead initialize the variable in the caller; let the
compiler decide how to do it.

Acked-by: <jbaron@akamai.com>
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Link: https://lore.kernel.org/r/20200719231058.1586423-10-jim.cromie@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/dynamic_debug.c