drivers: can: can_set_bitrate is not a syscall

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 <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2021-05-26 22:48:54 -07:00 committed by Kumar Gala
commit 18e9ec70d6

View file

@ -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)
{