Remove the unneeded void cast

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-04-17 23:14:13 +08:00
committed by Petro Karashchenko
parent 32ee2ae407
commit ef1a98dd00
108 changed files with 216 additions and 226 deletions
@@ -382,13 +382,13 @@ int rx65n_bringup(void)
#ifdef CONFIG_RX65N_SBRAM
/* Initialize battery-backed RAM */
(void)rx65n_sbram_int();
rx65n_sbram_int();
#endif
#ifdef HAVE_DTC_DRIVER
/* Initialize DTC */
(void)rx65n_dtc_initialize();
rx65n_dtc_initialize();
#endif
#if defined(CONFIG_USBHOST)
@@ -396,7 +396,7 @@ int rx65n_bringup(void)
#endif
#ifdef CONFIG_RX65N_RSPI
(void)rx65n_rspi_initialize();
rx65n_rspi_initialize();
#endif
#if defined(CONFIG_CDCACM) && !defined(CONFIG_CDCACM_CONSOLE)
@@ -242,7 +242,7 @@ static int hardfault_get_desc(struct sbramd_s *desc)
{
ret = file_ioctl(&filestruct, RX65N_SBRAM_GETDESC_IOCTL,
(unsigned long)((uintptr_t)desc));
(void)file_close(&filestruct);
file_close(&filestruct);
if (ret < 0)
{
@@ -340,7 +340,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
FAR struct tcb_s *rtcb;
int rv;
(void)enter_critical_section();
enter_critical_section();
rtcb = (FAR struct tcb_s *)tcb;
@@ -377,17 +377,17 @@ int rx65n_bringup(void)
#ifdef CONFIG_RX65N_SBRAM
/* Initialize standby RAM */
(void)rx65n_sbram_int();
rx65n_sbram_int();
#endif
#ifdef HAVE_DTC_DRIVER
/* Initialize DTC */
(void)rx65n_dtc_initialize();
rx65n_dtc_initialize();
#endif
#ifdef CONFIG_RX65N_RSPI
(void)rx65n_rspi_initialize();
rx65n_rspi_initialize();
#endif
#if defined(CONFIG_USBHOST)
@@ -240,7 +240,7 @@ static int hardfault_get_desc(struct sbramd_s *desc)
{
ret = file_ioctl(&filestruct, RX65N_SBRAM_GETDESC_IOCTL,
(unsigned long)((uintptr_t)desc));
(void)file_close(&filestruct);
file_close(&filestruct);
if (ret < 0)
{
@@ -338,7 +338,7 @@ void board_crashdump(uintptr_t currentsp, FAR void *tcb,
FAR struct tcb_s *rtcb;
int rv;
(void)enter_critical_section();
enter_critical_section();
rtcb = (FAR struct tcb_s *)tcb;