From 18e9ec70d6259569f5dd3775414cb2087f6eb7b4 Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Wed, 26 May 2021 22:48:54 -0700 Subject: [PATCH] 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 --- drivers/can/can_handlers.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/can/can_handlers.c b/drivers/can/can_handlers.c index 329bcab2a465f0..d1f13fd1851140 100644 --- a/drivers/can/can_handlers.c +++ b/drivers/can/can_handlers.c @@ -19,17 +19,6 @@ static inline int z_vrfy_can_set_timing(const struct device *dev, } #include -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 - static inline int z_vrfy_can_get_core_clock(const struct device *dev, uint32_t *rate) {