mm/slub: Remove the unneeded result variable
authorye xingchen <ye.xingchen@zte.com.cn>
Mon, 22 Aug 2022 01:38:30 +0000 (01:38 +0000)
committerVlastimil Babka <vbabka@suse.cz>
Tue, 23 Aug 2022 14:07:36 +0000 (16:07 +0200)
commit2bfbb0271a5b48c01c711d1509a422a7244c9eb8
tree1d53083153a83144302aefd81dd09930aa01fc33
parent610f9c00ce6ed894caf9bb4feb3c026339150233
mm/slub: Remove the unneeded result variable

Return the value from attribute->store(s, buf, len) and
attribute->show(s, buf) directly instead of storing it in
another redundant variable.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Acked-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c