Commit 546d6bad authored by Peter Geis's avatar Peter Geis Committed by Jakub Kicinski
Browse files

net: phy: fix yt8511 clang uninitialized variable warning

clang doesn't preinitialize variables. If phy_select_page failed and
returned an error, phy_restore_page would be called with `ret` being
uninitialized.
Even though phy_restore_page won't use `ret` in this scenario,
initialize `ret` to silence the warning.

Fixes: 48e8c6f1

 ("net: phy: add driver for Motorcomm yt8511 phy")
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarPeter Geis <pgwipeout@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 8b97f36a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment