]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: stmmac: drop unused variable in stm32mp1_set_mode()
authorChristophe Roullier <christophe.roullier@st.com>
Mon, 4 Nov 2019 10:51:00 +0000 (11:51 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Nov 2019 19:31:21 +0000 (11:31 -0800)
commite324cd675082a28a49d52580151e880a03bc75f5
treeb2a20886d49a8b3ee92952f004f4facb4facda2b
parenta3e71c9dc1e717a84ec7e3a0efcb8b39222d6d7f
net: ethernet: stmmac: drop unused variable in stm32mp1_set_mode()

Building with W=1 (cf.scripts/Makefile.extrawarn) outputs:
warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]

Drop the unused 'ret' variable.

Signed-off-by: Christophe Roullier <christophe.roullier@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-stm32.c