diff --git a/arch/arm/src/arm/arm_assert.c b/arch/arm/src/arm/arm_assert.c index 70379ee88d..fdd9b3edf7 100644 --- a/arch/arm/src/arm/arm_assert.c +++ b/arch/arm/src/arm/arm_assert.c @@ -166,12 +166,11 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); return OK; } diff --git a/arch/arm/src/armv6-m/arm_assert.c b/arch/arm/src/armv6-m/arm_assert.c index e8aa30cb7f..75a58ee4b1 100644 --- a/arch/arm/src/armv6-m/arm_assert.c +++ b/arch/arm/src/armv6-m/arm_assert.c @@ -203,14 +203,13 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/arm/src/armv7-a/arm_assert.c b/arch/arm/src/armv7-a/arm_assert.c index 16949eed6c..f66f02867b 100644 --- a/arch/arm/src/armv7-a/arm_assert.c +++ b/arch/arm/src/armv7-a/arm_assert.c @@ -188,14 +188,13 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/arm/src/armv7-m/arm_assert.c b/arch/arm/src/armv7-m/arm_assert.c index bad4de16b2..6a62e7aae3 100644 --- a/arch/arm/src/armv7-m/arm_assert.c +++ b/arch/arm/src/armv7-m/arm_assert.c @@ -196,14 +196,13 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/arm/src/armv7-r/arm_assert.c b/arch/arm/src/armv7-r/arm_assert.c index a8a65f14d0..d00dc6de2a 100644 --- a/arch/arm/src/armv7-r/arm_assert.c +++ b/arch/arm/src/armv7-r/arm_assert.c @@ -185,14 +185,13 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/arm/src/armv8-m/arm_assert.c b/arch/arm/src/armv8-m/arm_assert.c index ae07494324..514fbb0ed7 100755 --- a/arch/arm/src/armv8-m/arm_assert.c +++ b/arch/arm/src/armv8-m/arm_assert.c @@ -196,14 +196,13 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/avr/src/common/up_assert.c b/arch/avr/src/common/up_assert.c index ac5af18a9d..6849a00e78 100644 --- a/arch/avr/src/common/up_assert.c +++ b/arch/avr/src/common/up_assert.c @@ -120,14 +120,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/hc/src/m9s12/m9s12_assert.c b/arch/hc/src/m9s12/m9s12_assert.c index 88b5e8e884..52bcb62a3f 100644 --- a/arch/hc/src/m9s12/m9s12_assert.c +++ b/arch/hc/src/m9s12/m9s12_assert.c @@ -160,14 +160,13 @@ static inline void up_registerdump(void) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/mips/src/mips32/mips_assert.c b/arch/mips/src/mips32/mips_assert.c index e761558ce8..5e3f2e72da 100644 --- a/arch/mips/src/mips32/mips_assert.c +++ b/arch/mips/src/mips32/mips_assert.c @@ -120,14 +120,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/misoc/src/lm32/lm32_assert.c b/arch/misoc/src/lm32/lm32_assert.c index ccc49b35c4..85b970e50a 100644 --- a/arch/misoc/src/lm32/lm32_assert.c +++ b/arch/misoc/src/lm32/lm32_assert.c @@ -125,14 +125,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/misoc/src/minerva/minerva_assert.c b/arch/misoc/src/minerva/minerva_assert.c index a754f9f394..fd806dd1ed 100644 --- a/arch/misoc/src/minerva/minerva_assert.c +++ b/arch/misoc/src/minerva/minerva_assert.c @@ -125,14 +125,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/renesas/src/common/up_assert.c b/arch/renesas/src/common/up_assert.c index 919c0ee7bf..69a6ef1894 100644 --- a/arch/renesas/src/common/up_assert.c +++ b/arch/renesas/src/common/up_assert.c @@ -121,14 +121,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/risc-v/src/rv32im/riscv_assert.c b/arch/risc-v/src/rv32im/riscv_assert.c index 97f5756b21..7711ad8a3e 100644 --- a/arch/risc-v/src/rv32im/riscv_assert.c +++ b/arch/risc-v/src/rv32im/riscv_assert.c @@ -335,14 +335,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/risc-v/src/rv64gc/riscv_assert.c b/arch/risc-v/src/rv64gc/riscv_assert.c index b0fe071152..42d3cbd11f 100644 --- a/arch/risc-v/src/rv64gc/riscv_assert.c +++ b/arch/risc-v/src/rv64gc/riscv_assert.c @@ -350,14 +350,13 @@ static void _up_assert(int errorcode) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/x86/src/common/up_assert.c b/arch/x86/src/common/up_assert.c index 70db959223..8b5e0d9659 100644 --- a/arch/x86/src/common/up_assert.c +++ b/arch/x86/src/common/up_assert.c @@ -111,14 +111,13 @@ static void up_stackdump(uint32_t sp, uint32_t stack_base) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/x86_64/src/common/up_assert.c b/arch/x86_64/src/common/up_assert.c index 186f9670ef..ae9f15f9fd 100644 --- a/arch/x86_64/src/common/up_assert.c +++ b/arch/x86_64/src/common/up_assert.c @@ -85,14 +85,13 @@ static void up_stackdump(uint64_t sp, uint64_t stack_base) static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/xtensa/src/common/xtensa_assert.c b/arch/xtensa/src/common/xtensa_assert.c index dcf9382bcf..94e2b28953 100644 --- a/arch/xtensa/src/common/xtensa_assert.c +++ b/arch/xtensa/src/common/xtensa_assert.c @@ -81,14 +81,13 @@ static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/z16/src/common/z16_assert.c b/arch/z16/src/common/z16_assert.c index 6c340751bd..39d428b11e 100644 --- a/arch/z16/src/common/z16_assert.c +++ b/arch/z16/src/common/z16_assert.c @@ -104,14 +104,13 @@ static void _up_assert(int errorcode) /* noreturn_function */ static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(FAR struct usbtrace_s *trace, FAR void *arg) diff --git a/arch/z80/src/common/z80_assert.c b/arch/z80/src/common/z80_assert.c index dfd62481dd..87ebbcb9af 100644 --- a/arch/z80/src/common/z80_assert.c +++ b/arch/z80/src/common/z80_assert.c @@ -103,14 +103,13 @@ static void _up_assert(int errorcode) /* noreturn_function */ static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_EMERG, fmt, &ap); + vsyslog(LOG_EMERG, fmt, ap); va_end(ap); - return ret; + return OK; } static int assert_tracecallback(struct usbtrace_s *trace, void *arg) diff --git a/drivers/usbdev/usbdev_trace.c b/drivers/usbdev/usbdev_trace.c index 81ce7ff169..9b45903134 100644 --- a/drivers/usbdev/usbdev_trace.c +++ b/drivers/usbdev/usbdev_trace.c @@ -100,14 +100,13 @@ static usbtrace_idset_t g_maskedidset = CONFIG_USBDEV_TRACE_INITIALIDSET; static int usbtrace_syslog(const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_INFO, fmt, &ap); + vsyslog(LOG_INFO, fmt, ap); va_end(ap); - return ret; + return OK; } #endif diff --git a/drivers/usbmonitor/usbmonitor.c b/drivers/usbmonitor/usbmonitor.c index 5fc6a2c520..83a1108a82 100644 --- a/drivers/usbmonitor/usbmonitor.c +++ b/drivers/usbmonitor/usbmonitor.c @@ -143,14 +143,13 @@ static struct usbmon_state_s g_usbmonitor; static int usbtrace_syslog(FAR const char *fmt, ...) { va_list ap; - int ret; - /* Let nx_vsyslog do the real work */ + /* Let vsyslog do the real work */ va_start(ap, fmt); - ret = nx_vsyslog(LOG_INFO, fmt, &ap); + vsyslog(LOG_INFO, fmt, ap); va_end(ap); - return ret; + return OK; } static int usbmonitor_tracecallback(struct usbtrace_s *trace, void *arg)