]> git.baikalelectronics.ru Git - uboot.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)
commit4d122fda2feb89db26b16190548d14edc67c8000
tree13e5cfb64a9a2aaf193b32ec4f731ab1ec6e2dbc
parentd965e1b4abe2c4664d8cda64f9f62e381a477b1b
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