Commit c24f6577 authored by Dan Carpenter's avatar Dan Carpenter Committed by Paolo Abeni

net: sparx5: fix a couple warning messages

The WARN_ON() macro takes a condition, not a warning message.

Fixes: 0933bd04 ("net: sparx5: Add support for ptp clocks")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20220314140327.GB30883@kiliSigned-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 583024cf
......@@ -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;
}
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment