mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-07-19 12:50:21 +02:00
kprobes: Remove unnecessary initial values of variables
ri and sym is assigned first, so it does not need to initialize the assignment. Link: https://lore.kernel.org/all/20230919012823.7815-1-zeming@nfschina.com/ Signed-off-by: Li zeming <zeming@nfschina.com> Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
This commit is contained in:
parent
9a571c1e27
commit
9efd24ec55
|
@ -1993,7 +1993,7 @@ NOKPROBE_SYMBOL(__kretprobe_find_ret_addr);
|
|||
unsigned long kretprobe_find_ret_addr(struct task_struct *tsk, void *fp,
|
||||
struct llist_node **cur)
|
||||
{
|
||||
struct kretprobe_instance *ri = NULL;
|
||||
struct kretprobe_instance *ri;
|
||||
kprobe_opcode_t *ret;
|
||||
|
||||
if (WARN_ON_ONCE(!cur))
|
||||
|
@ -2802,7 +2802,7 @@ static int show_kprobe_addr(struct seq_file *pi, void *v)
|
|||
{
|
||||
struct hlist_head *head;
|
||||
struct kprobe *p, *kp;
|
||||
const char *sym = NULL;
|
||||
const char *sym;
|
||||
unsigned int i = *(loff_t *) v;
|
||||
unsigned long offset = 0;
|
||||
char *modname, namebuf[KSYM_NAME_LEN];
|
||||
|
|
Loading…
Reference in New Issue
Block a user