Skip to content

Commit 087b7b8

Browse files
moonlight83340danieldegrasse
authored andcommitted
drivers: ethernet: xilinx: remove unused variable
Clean up unused variable 'ret' and 'link_state' in eth_xilinx_axienet.c to improve code clarity. Signed-off-by: Gaetan Perrot <gaetan.perrot@spacecubics.com>
1 parent c86f570 commit 087b7b8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/ethernet/eth_xilinx_axienet.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,6 @@ static int xilinx_axienet_get_config(const struct device *dev, enum ethernet_con
381381
{
382382
const struct xilinx_axienet_config *dev_config = dev->config;
383383
const struct xilinx_axienet_data *data = dev->data;
384-
struct phy_link_state link_state;
385-
int err;
386384

387385
switch (type) {
388386
case ETHERNET_CONFIG_TYPE_RX_CHECKSUM_SUPPORT:

0 commit comments

Comments
 (0)