Skip to content

Commit

Permalink
net/mlx5: remove unreachable return
Browse files Browse the repository at this point in the history
The last return statement is unreachable code. I'm not sure if it will
provoke any warnings, but it looks ugly.

Signed-off-by: Pavel Machek (CIP) <pavel@denx.de>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
  • Loading branch information
Pavel Machek (CIP) authored and Saeed Mahameed committed Sep 23, 2020
1 parent d490c83 commit 987cd5f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/net/ethernet/mellanox/mlx5/core/lib/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,8 +435,6 @@ static int mlx5_ptp_verify(struct ptp_clock_info *ptp, unsigned int pin,
default:
return -EOPNOTSUPP;
}

return -EOPNOTSUPP;
}

static const struct ptp_clock_info mlx5_ptp_clock_info = {
Expand Down

0 comments on commit 987cd5f

Please sign in to comment.