Skip to content

Commit

Permalink
net: sparx5: fix a couple warning messages
Browse files Browse the repository at this point in the history
The WARN_ON() macro takes a condition, not a warning message.

Fixes: 0933bd0 ("net: sparx5: Add support for ptp clocks")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220314140327.GB30883@kili
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
  • Loading branch information
Dan Carpenter authored and Paolo Abeni committed Mar 15, 2022
1 parent 583024c commit c24f657
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/microchip/sparx5/sparx5_ptp.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static u64 sparx5_ptp_get_1ppm(struct sparx5 *sparx5)
res = 920535763834;
break;
default:
WARN_ON("Invalid core clock");
WARN(1, "Invalid core clock");
break;
}

Expand All @@ -67,7 +67,7 @@ static u64 sparx5_ptp_get_nominal_value(struct sparx5 *sparx5)
res = 0x0CC6666666666666;
break;
default:
WARN_ON("Invalid core clock");
WARN(1, "Invalid core clock");
break;
}

Expand Down

0 comments on commit c24f657

Please sign in to comment.