diff --git a/drivers/net/ethernet/airoha/airoha_ppe.c b/drivers/net/ethernet/airoha/airoha_ppe.c index 91bcc55a6ac6..0d42f82be77a 100644 --- a/drivers/net/ethernet/airoha/airoha_ppe.c +++ b/drivers/net/ethernet/airoha/airoha_ppe.c @@ -277,7 +277,7 @@ static int airoha_ppe_get_wdma_info(struct net_device *dev, const u8 *addr, path = &stack.path[stack.num_paths - 1]; if (path->type != DEV_PATH_MTK_WDMA) - return -1; + return -EINVAL; info->idx = path->mtk_wdma.wdma_idx; info->bss = path->mtk_wdma.bss;