diff --git a/src/net/drivers/net/ethernet/dinghai/en_aux.c b/src/net/drivers/net/ethernet/dinghai/en_aux.c index 16cf2ea16a69f1b3dd71d48a7630f2551ddc7e0b..92c818c1beaa9c0da42e7b4f0addaba646a331df 100644 --- a/src/net/drivers/net/ethernet/dinghai/en_aux.c +++ b/src/net/drivers/net/ethernet/dinghai/en_aux.c @@ -3572,7 +3572,7 @@ err_create_netdev: return err; } -static int32_t zxdh_en_dev_remove(struct auxiliary_device *adev) +static void zxdh_en_dev_remove(struct auxiliary_device *adev) { struct zxdh_en_priv *en_priv = (struct zxdh_en_priv *)dev_get_drvdata(&adev->dev); @@ -3625,7 +3625,6 @@ static int32_t zxdh_en_dev_remove(struct auxiliary_device *adev) free_netdev(netdev); LOG_INFO("zxdh_en_dev_remove stop\n"); - return 0; } static void zxdh_en_dev_shutdown(struct auxiliary_device *adev) diff --git a/src/net/drivers/net/ethernet/dinghai/en_sf.c b/src/net/drivers/net/ethernet/dinghai/en_sf.c index 7f00f1832bd832fb4c8448a5d6d28aaf15707de3..373b4760b30d498f81d6e8fe0d8484fa56e1c844 100644 --- a/src/net/drivers/net/ethernet/dinghai/en_sf.c +++ b/src/net/drivers/net/ethernet/dinghai/en_sf.c @@ -696,7 +696,7 @@ err_eq_table_init: return err; } -static int32_t zxdh_en_sf_dev_remove(struct auxiliary_device *adev) +static void zxdh_en_sf_dev_remove(struct auxiliary_device *adev) { struct zxdh_en_sf_container *sf_con = container_of(adev, struct zxdh_en_sf_container, adev); @@ -714,7 +714,6 @@ static int32_t zxdh_en_sf_dev_remove(struct auxiliary_device *adev) zxdh_devlink_free(devlink); LOG_INFO("zxdh_en_sf_dev_remove stop\n"); - return 0; } static void zxdh_en_sf_dev_shutdown(struct auxiliary_device *adev)