Skip to content

Commit 942d823

Browse files
committed
drivers: ethernet: phy: dm8806: fix error handling
Use signed variable for negative error codes so that potential errors are actually detected and returned properly. Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent 92d4669 commit 942d823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ethernet/phy/phy_dm8806.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ static int phy_dm8806_get_link_state(const struct device *dev, struct phy_link_s
525525
static int phy_dm8806_cfg_link(const struct device *dev, enum phy_link_speed adv_speeds,
526526
enum phy_cfg_link_flag flags)
527527
{
528-
uint8_t ret;
528+
int ret;
529529
uint16_t data;
530530
uint16_t req_speed;
531531
const struct phy_dm8806_config *cfg = dev->config;

0 commit comments

Comments
 (0)