diff options
| author | 2019-12-19 10:17:37 +0100 | |
|---|---|---|
| committer | 2022-02-24 08:26:03 +0100 | |
| commit | 5b60d334e42a37febfd284bd388e526fcddce02a (patch) | |
| tree | 38b2de39ca1fa38fa5f79e1fcc89270f3c561873 /include | |
| parent | can: gw: use call_rcu() instead of costly synchronize_rcu() (diff) | |
| download | linux-dev-5b60d334e42a37febfd284bd388e526fcddce02a.tar.xz linux-dev-5b60d334e42a37febfd284bd388e526fcddce02a.zip | |
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')
0 files changed, 0 insertions, 0 deletions
