Commit 4e7b897
media: c8sectpfe: Call of_node_put(i2c_bus) only once in c8sectpfe_probe()
[ Upstream commit b773530 ]
An of_node_put(i2c_bus) call was immediately used after a pointer check
for an of_find_i2c_adapter_by_node() call in this function implementation.
Thus call such a function only once instead directly before the check.
This issue was transformed by using the Coccinelle software.
Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
(cherry picked from commit 33cc26204e3893f18bc8149046eaffcadeace0e4)
Signed-off-by: Alok Tiwari <[email protected]>1 parent 822bd09 commit 4e7b897
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
813 | 813 | | |
814 | 814 | | |
815 | 815 | | |
| 816 | + | |
816 | 817 | | |
817 | 818 | | |
818 | | - | |
819 | 819 | | |
820 | 820 | | |
821 | 821 | | |
822 | | - | |
823 | 822 | | |
824 | 823 | | |
825 | 824 | | |
| |||
0 commit comments