mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
tools/mm/slabinfo: remove dead assignment in get_obj_and_str()
The assignment `x = NULL` sets the local parameter variable instead of `*x`, which is a no-op since `*x` was already set to NULL on the line above. Remove the dead assignment. Signed-off-by: Xuewen Wang <wangxuewen@kylinos.cn> Reviewed-by: SeongJae Park <sj@kernel.org> Link: https://patch.msgid.link/20260518062159.80664-3-wangxuewen@kylinos.cn Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
This commit is contained in:
parent
235ab68d67
commit
76c2db064b
|
|
@ -193,10 +193,9 @@ static unsigned long get_obj_and_str(const char *name, char **x)
|
|||
|
||||
*x = NULL;
|
||||
|
||||
if (!read_obj(name)) {
|
||||
x = NULL;
|
||||
if (!read_obj(name))
|
||||
return 0;
|
||||
}
|
||||
|
||||
result = strtoul(buffer, &p, 10);
|
||||
while (*p == ' ')
|
||||
p++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user