Commit cd94896
i2c: qup: Add missing unwind goto in qup_i2c_probe()
Smatch Warns:
drivers/i2c/busses/i2c-qup.c:1784 qup_i2c_probe()
warn: missing unwind goto?
The goto label "fail_runtime" and "fail" will disable qup->pclk,
but here qup->pclk failed to obtain, in order to be consistent,
change the direct return to goto label "fail_dma".
Fixes: 9cedf3b ("i2c: qup: Add bam dma capabilities")
Signed-off-by: Shuai Jiang <[email protected]>
Reviewed-by: Dongliang Mu <[email protected]>
Reviewed-by: Andi Shyti <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Cc: <[email protected]> # v4.6+1 parent bd5c710 commit cd94896
1 file changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
1755 | | - | |
| 1755 | + | |
| 1756 | + | |
1756 | 1757 | | |
1757 | 1758 | | |
1758 | 1759 | | |
1759 | | - | |
1760 | | - | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
1761 | 1764 | | |
1762 | 1765 | | |
1763 | | - | |
1764 | | - | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
1765 | 1770 | | |
1766 | 1771 | | |
1767 | 1772 | | |
| |||
1775 | 1780 | | |
1776 | 1781 | | |
1777 | 1782 | | |
1778 | | - | |
| 1783 | + | |
| 1784 | + | |
1779 | 1785 | | |
1780 | 1786 | | |
1781 | 1787 | | |
1782 | 1788 | | |
1783 | 1789 | | |
1784 | | - | |
| 1790 | + | |
| 1791 | + | |
1785 | 1792 | | |
1786 | 1793 | | |
1787 | 1794 | | |
| |||
0 commit comments