mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Remove the unneeded void cast
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Petro Karashchenko
parent
32ee2ae407
commit
ef1a98dd00
@@ -2008,7 +2008,7 @@ static void rx65n_riic_pre_end_set(FAR struct rx65n_i2c_priv_s *priv)
|
||||
RIIC0.ICMR3.BIT.ACKBT = 1;
|
||||
RIIC0.ICMR3.BIT.ACKWP = 0;
|
||||
|
||||
(void)rx65n_getreg(RX65N_RIIC0_ICMR3);
|
||||
rx65n_getreg(RX65N_RIIC0_ICMR3);
|
||||
}
|
||||
|
||||
else if (1 == priv->bus)
|
||||
@@ -2020,7 +2020,7 @@ static void rx65n_riic_pre_end_set(FAR struct rx65n_i2c_priv_s *priv)
|
||||
RIIC1.ICMR3.BIT.ACKBT = 1;
|
||||
RIIC1.ICMR3.BIT.ACKWP = 0;
|
||||
|
||||
(void)rx65n_getreg(RX65N_RIIC1_ICMR3);
|
||||
rx65n_getreg(RX65N_RIIC1_ICMR3);
|
||||
}
|
||||
|
||||
else
|
||||
@@ -2032,7 +2032,7 @@ static void rx65n_riic_pre_end_set(FAR struct rx65n_i2c_priv_s *priv)
|
||||
RIIC2.ICMR3.BIT.ACKBT = 1;
|
||||
RIIC2.ICMR3.BIT.ACKWP = 0;
|
||||
|
||||
(void)rx65n_getreg(RX65N_RIIC2_ICMR3);
|
||||
rx65n_getreg(RX65N_RIIC2_ICMR3);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -553,7 +553,7 @@ int rx65n_rtc_setdatetime(FAR const struct tm *tp)
|
||||
* seconds)
|
||||
*/
|
||||
|
||||
/* (void)gmtime_r(&tp->tv_sec, &tp); */
|
||||
/* gmtime_r(&tp->tv_sec, &tp); */
|
||||
|
||||
rtc_dumptime(&tp, "Setting time");
|
||||
|
||||
@@ -706,7 +706,7 @@ int up_rtc_settime(FAR const struct timespec *tp)
|
||||
* seconds)
|
||||
*/
|
||||
|
||||
(void)gmtime_r(&tp->tv_sec, &newtime);
|
||||
gmtime_r(&tp->tv_sec, &newtime);
|
||||
rtc_dumptime(&newtime, "Setting time");
|
||||
|
||||
/* Then write the broken out values to the RTC */
|
||||
|
||||
@@ -467,7 +467,7 @@ static int rx65n_setrelative(FAR struct rtc_lowerhalf_s *lower,
|
||||
|
||||
/* And convert the time back to broken out format */
|
||||
|
||||
(void)gmtime_r(&seconds, (FAR struct tm *)&setalarm.time);
|
||||
gmtime_r(&seconds, (FAR struct tm *)&setalarm.time);
|
||||
|
||||
/* The set the alarm using this absolute time */
|
||||
|
||||
|
||||
@@ -278,7 +278,7 @@ static int rx65n_sbram_open(FAR struct file *filep)
|
||||
static int rx65n_sbram_internal_close(FAR struct sbramfh_s *bbf)
|
||||
{
|
||||
bbf->dirty = 0;
|
||||
(void)clock_gettime(CLOCK_REALTIME, &bbf->lastwrite);
|
||||
clock_gettime(CLOCK_REALTIME, &bbf->lastwrite);
|
||||
bbf->crc = rx65n_sbram_crc(bbf);
|
||||
|
||||
SBRAM_DUMP(bbf, "close done");
|
||||
|
||||
@@ -3925,7 +3925,7 @@ static uint16_t usb_cstd_is_set_frdy (uint16_t pipe, uint16_t fifosel,
|
||||
|
||||
buffer = hw_usb_read_syscfg();
|
||||
buffer = hw_usb_read_syssts();
|
||||
(void)nxsig_usleep(1);
|
||||
nxsig_usleep(1);
|
||||
}
|
||||
|
||||
return (RX65N_USB_FIFO_ERROR);
|
||||
@@ -6322,7 +6322,7 @@ static void rx65n_usbhost_bottomhalf (void *arg)
|
||||
|
||||
else
|
||||
{
|
||||
(void)nxsig_usleep(100);
|
||||
nxsig_usleep(100);
|
||||
uwarn("WARNING: un known bottomhalf. Value is %d\n",
|
||||
bottom_half_processing);
|
||||
syslog (LOG_INFO, "WARNING: un known bottomhalf. Value is %d\n",
|
||||
@@ -6480,13 +6480,13 @@ static int rx65n_usbhost_rh_enumerate(struct usbhost_connection_s *conn,
|
||||
|
||||
/* USB 2.0 spec says at least 50ms delay before port reset */
|
||||
|
||||
(void)nxsig_usleep(100 * 1000);
|
||||
nxsig_usleep(100 * 1000);
|
||||
|
||||
/* Put RH port 1 in reset.
|
||||
* Currently supporting only single downstream port)
|
||||
*/
|
||||
|
||||
(void)nxsig_usleep(200 * 1000);
|
||||
nxsig_usleep(200 * 1000);
|
||||
return OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user