phy: ti: am654: simplify return handling
authorSekhar Nori <nsekhar@ti.com>
Mon, 27 Jul 2020 19:46:02 +0000 (01:16 +0530)
committerVinod Koul <vkoul@kernel.org>
Sun, 23 Aug 2020 14:09:58 +0000 (19:39 +0530)
commitb494bbb6c69fd8ad0f92356c94b904b48155d64f
tree55a2f414d0c82a31372041e88b2744ca1017821d
parentc3e60e5a9eb9d98d80faa36d0c619c62d3545050
phy: ti: am654: simplify return handling

Checking return value after each regfield write becomes
hard to read quickly as number of writes increase.

Simplify by checking for error only once.

Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Link: https://lore.kernel.org/r/20200727194603.44636-3-nsekhar@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/phy/ti/phy-am654-serdes.c