]> git.dujemihanovic.xyz Git - u-boot.git/commit
net: mvneta: Fix unused variable warning if DM_GPIO is disabled
authorMarek Behún <marek.behun@nic.cz>
Wed, 27 Apr 2022 10:41:52 +0000 (12:41 +0200)
committerStefan Roese <sr@denx.de>
Wed, 4 May 2022 05:05:51 +0000 (07:05 +0200)
commit7ec50404ae65b081554ac5cceb1e60524413177f
tree13e5cfb64a9a2aaf193b32ec4f731ab1ec6e2dbc
parent1d87904c159bd2773c47e72befa18af8720f3177
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: Marek Behún <marek.behun@nic.cz>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/net/mvneta.c