Commit 69b8600
of: property: Do some clean up with use of __free()
__free() provides a scoped of_node_put() functionality to put the
device_node automatically, and we don't need to call of_node_put()
directly. Let's simplify the code a bit with the use of __free().
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Link: https://lore.kernel.org/r/20240830020626.115933-4-zhangzekun11@huawei.com
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>1 parent 0a543ac commit 69b8600
1 file changed
Lines changed: 8 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
776 | | - | |
777 | | - | |
778 | 776 | | |
779 | | - | |
780 | | - | |
781 | | - | |
| 777 | + | |
| 778 | + | |
782 | 779 | | |
783 | | - | |
784 | | - | |
785 | | - | |
| 780 | + | |
786 | 781 | | |
787 | 782 | | |
788 | 783 | | |
| |||
1064 | 1059 | | |
1065 | 1060 | | |
1066 | 1061 | | |
1067 | | - | |
| 1062 | + | |
1068 | 1063 | | |
1069 | 1064 | | |
1070 | 1065 | | |
1071 | | - | |
1072 | | - | |
| 1066 | + | |
1073 | 1067 | | |
1074 | | - | |
1075 | 1068 | | |
1076 | | - | |
1077 | | - | |
| 1069 | + | |
1078 | 1070 | | |
1079 | | - | |
1080 | 1071 | | |
1081 | 1072 | | |
1082 | 1073 | | |
| |||
1440 | 1431 | | |
1441 | 1432 | | |
1442 | 1433 | | |
1443 | | - | |
| 1434 | + | |
| 1435 | + | |
1444 | 1436 | | |
1445 | | - | |
1446 | | - | |
1447 | | - | |
1448 | 1437 | | |
1449 | 1438 | | |
1450 | 1439 | | |
1451 | 1440 | | |
1452 | | - | |
1453 | 1441 | | |
1454 | 1442 | | |
1455 | 1443 | | |
| |||
0 commit comments