diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2019-12-19 12:17:37 +0300 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2022-02-24 10:26:03 +0300 |
commit | 5b60d334e42a37febfd284bd388e526fcddce02a (patch) | |
tree | 38b2de39ca1fa38fa5f79e1fcc89270f3c561873 /include/linux/can | |
parent | 181d4447905d551cc664f1e7e796b482c1eec992 (diff) | |
download | linux-5b60d334e42a37febfd284bd388e526fcddce02a.tar.xz |
can: bittiming: can_validate_bitrate(): simplify bit rate checking
This patch simplifies the validation of the fixed bit rates. If a
supported bit rate is found, directly return 0.
If no valid bit rate is found return -EINVAL;
Link: https://lore.kernel.org/all/20220124215642.3474154-6-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'include/linux/can')
0 files changed, 0 insertions, 0 deletions