From: Greg Kroah-Hartman Date: Thu, 17 Oct 2024 10:06:51 +0000 (+0200) Subject: net: dsa: microchip: fix build warning X-Git-Tag: v5.10.227~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9350016415b68761bd8b31aad1e21d7b672ddab9;p=thirdparty%2Fkernel%2Fstable.git net: dsa: microchip: fix build warning In commit 65a9383389db ("net: dsa: microchip: fix initial port flush problem"), the build warning of an unused variable showed up. Fix this by removing the variable entirely. Fixes: 65a9383389db ("net: dsa: microchip: fix initial port flush problem") Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/net/dsa/microchip/ksz9477.c b/drivers/net/dsa/microchip/ksz9477.c index 535b64155320a..4d0c2be652ae4 100644 --- a/drivers/net/dsa/microchip/ksz9477.c +++ b/drivers/net/dsa/microchip/ksz9477.c @@ -195,7 +195,6 @@ static int ksz9477_wait_alu_sta_ready(struct ksz_device *dev) static int ksz9477_reset_switch(struct ksz_device *dev) { - u8 data8; u32 data32; /* reset switch */