Skip to content
Commit 7ec50404 authored by Marek Behún's avatar Marek Behún Committed by Stefan Roese
Browse files

net: mvneta: Fix unused variable warning if DM_GPIO is disabled



The `ret` variable in mvneta_probe() is unused if DM_GPIO is disabled.

Since the variable is used only once after assigning value, we can
inline the usage and drop the variable.

Signed-off-by: default avatarMarek Behún <marek.behun@nic.cz>
Reviewed-by: default avatarRamon Fried <rfried.dev@gmail.com>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent 1d87904c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment