Commit 2bfbb02
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>1 parent 610f9c0 commit 2bfbb02
1 file changed
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5826 | 5826 | | |
5827 | 5827 | | |
5828 | 5828 | | |
5829 | | - | |
5830 | 5829 | | |
5831 | 5830 | | |
5832 | 5831 | | |
5833 | 5832 | | |
5834 | 5833 | | |
5835 | 5834 | | |
5836 | 5835 | | |
5837 | | - | |
5838 | | - | |
5839 | | - | |
| 5836 | + | |
5840 | 5837 | | |
5841 | 5838 | | |
5842 | 5839 | | |
| |||
5845 | 5842 | | |
5846 | 5843 | | |
5847 | 5844 | | |
5848 | | - | |
5849 | 5845 | | |
5850 | 5846 | | |
5851 | 5847 | | |
5852 | 5848 | | |
5853 | 5849 | | |
5854 | 5850 | | |
5855 | 5851 | | |
5856 | | - | |
5857 | | - | |
| 5852 | + | |
5858 | 5853 | | |
5859 | 5854 | | |
5860 | 5855 | | |
| |||
0 commit comments