Skip to content

Commit

Permalink
drivers: can: can_set_bitrate is not a syscall
Browse files Browse the repository at this point in the history
There was a verification function for can_set_bitrate calling a syscall
implementation. But, can_set_bitrate is not a syscall and does not need
to be because it is accessing the driver through other syscalls.

Fixes #34734

Signed-off-by: Flavio Ceolin <[email protected]>
  • Loading branch information
Flavio Ceolin authored and galak committed May 27, 2021
1 parent f98bc0c commit 18e9ec7
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions drivers/can/can_handlers.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ static inline int z_vrfy_can_set_timing(const struct device *dev,
}
#include <syscalls/can_set_timing_mrsh.c>

static inline int z_vrfy_can_set_bitrate(const struct device *dev,
uint32_t bitrate)
{

Z_OOPS(Z_SYSCALL_DRIVER_CAN(dev, set_bitrate));

return z_impl_can_set_bitrate((const struct device *)dev,
(uint32_t)bitrate);
}
#include <syscalls/can_set_bitrate_mrsh.c>

static inline int z_vrfy_can_get_core_clock(const struct device *dev,
uint32_t *rate)
{
Expand Down

0 comments on commit 18e9ec7

Please sign in to comment.