style: remove redundant spaces

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko 2024-08-24 13:20:49 -04:00 committed by Xiang Xiao
parent d252b6229f
commit f40b09cbc9
35 changed files with 69 additions and 71 deletions

@ -749,8 +749,8 @@ static void am335x_i2c_traceevent(struct am335x_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -992,8 +992,8 @@ static void at32_i2c_traceevent(struct at32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -943,8 +943,8 @@ static void gd32_i2c_traceevent(struct gd32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1023,8 +1023,8 @@ static void imxrt_lpi2c_traceevent(struct imxrt_lpi2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -83,7 +83,7 @@ struct phyplus_lowerhalf_s
* Private Function Prototypes
****************************************************************************/
static int phyplus_timer_handler(int irq, void * context, void * arg);
static int phyplus_timer_handler(int irq, void *context, void *arg);
/* "Lower half" driver methods **********************************************/
@ -97,7 +97,7 @@ static void phyplus_setcallback(struct timer_lowerhalf_s *lower,
tccb_t callback, void *arg);
/* static int phyplus_ioctl(struct timer_lowerhalf_s *lower, int cmd,
* unsigned long arg);
* unsigned long arg);
*/
/****************************************************************************
@ -194,9 +194,9 @@ static struct phyplus_lowerhalf_s g_tim6_lowerhalf =
*
****************************************************************************/
static int phyplus_timer_handler(int irq, void * context, void * arg)
static int phyplus_timer_handler(int irq, void *context, void *arg)
{
struct phyplus_lowerhalf_s *lower = (struct phyplus_lowerhalf_s *) arg;
struct phyplus_lowerhalf_s *lower = (struct phyplus_lowerhalf_s *)arg;
/* PHYPLUS_TIM_ACKINT(lower->tim); */
@ -311,7 +311,7 @@ static int phyplus_stop(struct timer_lowerhalf_s *lower)
****************************************************************************/
static int phyplus_settimeout(struct timer_lowerhalf_s *lower,
uint32_t timeout)
uint32_t timeout)
{
struct phyplus_lowerhalf_s *priv =
(struct phyplus_lowerhalf_s *)lower;
@ -593,8 +593,7 @@ static int phyplus_getstatus(struct timer_lowerhalf_s *lower,
return OK;
}
int phyplus_timer_register(struct phyplus_timer_param_s
*phyplus_timer_param)
int phyplus_timer_register(struct phyplus_timer_param_s *phyplus_timer_param)
{
char devname[16];
@ -609,8 +608,7 @@ int phyplus_timer_register(struct phyplus_timer_param_s
return phyplus_timer_initialize(devname, phyplus_timer_param->timer_idx);
}
int phyplus_timer_ungister(struct phyplus_timer_param_s
*phyplus_timer_param)
int phyplus_timer_ungister(struct phyplus_timer_param_s *phyplus_timer_param)
{
return 0;
}

@ -98,7 +98,7 @@ void bt_coex_handle_cmd_complete_evt(uint16_t opcode, uint16_t cause,
if (total_len <= 1)
{
printf("bt_coex_handle_cmd_complete_evt: not report to wifi");
return ;
return;
}
rltk_coex_mailbox_to_wifi(p, total_len);

@ -872,8 +872,8 @@ static void s32k1xx_lpi2c_traceevent(struct s32k1xx_lpi2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -879,8 +879,8 @@ static void s32k3xx_lpi2c_traceevent(struct s32k3xx_lpi2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -794,8 +794,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -824,8 +824,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1116,8 +1116,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -847,8 +847,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1115,8 +1115,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1151,8 +1151,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1112,8 +1112,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1165,8 +1165,8 @@ static void stm32l4_i2c_traceevent(struct stm32l4_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1165,8 +1165,8 @@ static void stm32_i2c_traceevent(struct stm32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -988,8 +988,8 @@ static void stm32wb_i2c_traceevent(struct stm32wb_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -711,7 +711,7 @@ static void tiva_adc_read(void *arg)
ret = tiva_adc_lock(g_adcs[sse->adc], sse->num);
if (ret < 0)
{
return ;
return;
}
/* Get sampled data */

@ -1192,8 +1192,8 @@ static void imx9_lpi2c_traceevent(struct imx9_lpi2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -553,8 +553,8 @@ static void pic32mz_i2c_traceevent(struct pic32mz_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -570,7 +570,7 @@ static void adc_read_work(struct adc_dev_s *dev)
if (ret < 0)
{
aerr("Failed to lock ret=%d\n", ret);
return ;
return;
}
adc_samplecfg(priv->channel);

@ -1032,7 +1032,7 @@ static void mpi_bigendian_to_host(uint32_t * const p, size_t limbs)
uint32_t *cur_limb_right;
if (limbs == 0)
{
return ;
return;
}
/* Traverse limbs and
@ -1255,7 +1255,7 @@ void esp32c3_mpi_free(struct esp32c3_mpi_s *X)
{
if (X == NULL)
{
return ;
return;
}
if (X->p != NULL)

@ -621,7 +621,7 @@ static void esp32c3_i2c_init_clock(struct esp32c3_i2c_priv_s *priv,
{
if (bus_freq == priv->clk_freq)
{
return ;
return;
}
uint32_t reg_value = 0;
@ -1245,8 +1245,8 @@ static void esp32c3_i2c_traceevent(struct esp32c3_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -932,7 +932,7 @@ static void esp_set_isr(int32_t n, void *f, void *arg)
if (g_wifi_irq_bind)
{
return ;
return;
}
adapter = kmm_malloc(sizeof(struct irq_adpt));

@ -483,7 +483,7 @@ void rv32m1_gpio_write(uint32_t cfgset, bool value)
port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
if (port >= RV32M1_NGPIO_PORTS)
{
return ;
return;
}
/* Get the gpio base address */
@ -517,7 +517,7 @@ void rv32m1_gpio_toggle(uint32_t cfgset)
port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
if (port >= RV32M1_NGPIO_PORTS)
{
return ;
return;
}
/* Get the gpio base address */
@ -568,7 +568,7 @@ void rv32m1_gpio_irqenable(uint32_t cfgset)
port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
if (port >= RV32M1_NGPIO_PORTS)
{
return ;
return;
}
/* Get the irq */
@ -597,7 +597,7 @@ void rv32m1_gpio_irqdisable(uint32_t cfgset)
port = (cfgset & GPIO_PORT_MASK) >> GPIO_PORT_SHIFT;
if (port >= RV32M1_NGPIO_PORTS)
{
return ;
return;
}
/* Get the port base address */

@ -1640,7 +1640,7 @@ static void emac_dopoll(struct esp32_emac_s *priv)
{
/* never reach */
return ;
return;
}
dev->d_len = EMAC_BUF_LEN;

@ -212,7 +212,7 @@ int esp_himem_init(void)
/* Catch double init */
/* Looks weird; last arg is empty so it expands to 'return ;' */
/* Looks weird; last arg is empty so it expands to 'return;' */
HIMEM_CHECK(g_ram_descriptor != NULL, "already initialized", 0);

@ -620,7 +620,7 @@ static void esp32_i2c_init_clock(struct esp32_i2c_priv_s *priv,
if (clk_freq == priv->clk_freq)
{
return ;
return;
}
esp32_i2c_set_reg(priv, I2C_SCL_LOW_PERIOD_OFFSET, half_cycles);
@ -1248,8 +1248,8 @@ static void esp32_i2c_traceevent(struct esp32_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -979,7 +979,7 @@ static void wlan_dopoll(struct wlan_priv_s *priv)
pktbuf = wlan_alloc_buffer(priv);
if (!pktbuf)
{
return ;
return;
}
dev->d_buf = pktbuf->buffer;

@ -1268,8 +1268,8 @@ static void i2c_traceevent(struct esp32s2_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -1032,7 +1032,7 @@ int esp_himem_init(void)
/* Catch double init */
/* Looks weird; last arg is empty so it expands to 'return ;' */
/* Looks weird; last arg is empty so it expands to 'return;' */
HIMEM_CHECK(g_ram_descriptor != NULL, "already initialized", 0);

@ -1297,8 +1297,8 @@ static void i2c_traceevent(struct esp32s3_i2c_priv_s *priv,
/* Initialize the new trace entry */
trace->event = event;
trace->parm = parm;
trace->event = event;
trace->parm = parm;
/* Bump up the trace index (unless we are out of trace entries) */

@ -608,7 +608,7 @@ int IRAM_ATTR esp_spiram_init(void)
merr("Expected %dMB chip but found %dMB chip. Bailing out..",
(CONFIG_ESP32S3_SPIRAM_SIZE / 1024 / 1024),
(psram_physical_size / 1024 / 1024));
return ;
return;
}
#endif

@ -896,7 +896,7 @@ static void wlan_dopoll(struct wlan_priv_s *priv)
pktbuf = wlan_alloc_buffer(priv);
if (!pktbuf)
{
return ;
return;
}
dev->d_buf = pktbuf->buffer;