Correct the code alignment

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2022-02-02 00:55:50 +08:00
committed by Alan Carvalho de Assis
parent f987668068
commit 4c167b0729
54 changed files with 112 additions and 110 deletions
+1 -1
View File
@@ -842,7 +842,7 @@ static inline void efm32_chan_freeall(FAR struct efm32_usbhost_s *priv)
/* Free all host channels */ /* Free all host channels */
for (chidx = 2; chidx < EFM32_NHOST_CHANNELS; chidx ++) for (chidx = 2; chidx < EFM32_NHOST_CHANNELS; chidx++)
{ {
efm32_chan_free(priv, chidx); efm32_chan_free(priv, chidx);
} }
+2 -2
View File
@@ -1194,7 +1194,7 @@ static void sam_tsd_startuptime(struct sam_tsd_s *priv, uint32_t time)
startup /= 10; startup /= 10;
if (startup) if (startup)
{ {
startup --; startup--;
} }
} }
@@ -1318,7 +1318,7 @@ static void sam_tsd_tracking(struct sam_tsd_s *priv, uint32_t time)
tracktim /= 10; tracktim /= 10;
if (tracktim) if (tracktim)
{ {
tracktim --; tracktim--;
} }
} }
+1 -1
View File
@@ -763,7 +763,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
/* Free all host channels */ /* Free all host channels */
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++) for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
{ {
stm32_chan_free(priv, chidx); stm32_chan_free(priv, chidx);
} }
+1 -1
View File
@@ -768,7 +768,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
/* Free all host channels */ /* Free all host channels */
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++) for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
{ {
stm32_chan_free(priv, chidx); stm32_chan_free(priv, chidx);
} }
+1 -1
View File
@@ -757,7 +757,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
/* Free all host channels */ /* Free all host channels */
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++) for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
{ {
stm32_chan_free(priv, chidx); stm32_chan_free(priv, chidx);
} }
+1 -1
View File
@@ -760,7 +760,7 @@ static inline void stm32_chan_freeall(FAR struct stm32_usbhost_s *priv)
/* Free all host channels */ /* Free all host channels */
for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx ++) for (chidx = 2; chidx < STM32_NHOST_CHANNELS; chidx++)
{ {
stm32_chan_free(priv, chidx); stm32_chan_free(priv, chidx);
} }
+1 -1
View File
@@ -768,7 +768,7 @@ static inline void stm32l4_chan_freeall(FAR struct stm32l4_usbhost_s *priv)
/* Free all host channels */ /* Free all host channels */
for (chidx = 2; chidx < STM32L4_NHOST_CHANNELS; chidx ++) for (chidx = 2; chidx < STM32L4_NHOST_CHANNELS; chidx++)
{ {
stm32l4_chan_free(priv, chidx); stm32l4_chan_free(priv, chidx);
} }
+3 -1
View File
@@ -1398,7 +1398,9 @@ static unsigned int lis2dh_get_fifo_readings(FAR struct lis2dh_dev_s *priv,
{ {
uint8_t raw[6]; uint8_t raw[6];
struct lis2dh_vector_s sample; struct lis2dh_vector_s sample;
} *buf = (void *)&res->measurements[res->header.meas_count]; }
*buf = (void *)&res->measurements[res->header.meas_count];
bool xy_axis_fixup = priv->setup->xy_axis_fixup; bool xy_axis_fixup = priv->setup->xy_axis_fixup;
size_t buflen = readcount * 6; size_t buflen = readcount * 6;