Skip to content

Commit 9fd4ea9

Browse files
Flavio Ceolingalak
authored andcommitted
coccinelle: Remove extra semicolon
coccicheck --mode=patch --cocci=semicolon.cocci Signed-off-by: Flavio Ceolin <[email protected]>
1 parent ce88bd9 commit 9fd4ea9

File tree

39 files changed

+52
-52
lines changed

39 files changed

+52
-52
lines changed

boards/arm/arty/board.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int board_daplink_qspi_mux_select(enum board_daplink_qspi_mux_mode mode)
3333
default:
3434
__ASSERT(0, "invalid mode");
3535
return -EINVAL;
36-
};
36+
}
3737

3838
gpio = device_get_binding(DT_GPIO_LABEL(DAPLINK_QSPI_MUX_NODE,
3939
mux_gpios));

drivers/clock_control/clock_control_npcx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static int npcx_clock_control_get_subsys_rate(const struct device *dev,
9595
*rate = 0U;
9696
/* Invalid parameters */
9797
return -EINVAL;
98-
};
98+
}
9999

100100
return 0;
101101
}

drivers/gpio/gpio_eos_s3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static int gpio_eos_s3_get_irq_num(uint8_t pad)
134134
break;
135135
default:
136136
return -EINVAL;
137-
};
137+
}
138138

139139
return gpio_irq_num;
140140
}

drivers/gpio/gpio_mcp23s17.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ static int mcp23s17_config(const struct device *dev,
226226
if ((flags & GPIO_OPEN_DRAIN) != 0U) {
227227
ret = -ENOTSUP;
228228
goto done;
229-
};
229+
}
230230

231231
ret = setup_pin_dir(dev, pin, flags);
232232
if (ret) {

drivers/ieee802154/ieee802154_rf2xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static void rf2xx_process_rx_frame(const struct device *dev)
266266
while (rf2xx_iface_reg_read(dev, RF2XX_TRX_STATUS_REG) ==
267267
RF2XX_TRX_PHY_STATUS_BUSY_RX_AACK) {
268268
;
269-
};
269+
}
270270

271271
/* Set PLL_ON to avoid transceiver receive
272272
* new data until finish reading process

drivers/pinmux/pinmux_cc13xx_cc26xx.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static int pinmux_cc13xx_cc26xx_pullup(const struct device *dev, uint32_t pin,
5252
case PINMUX_PULLUP_DISABLE:
5353
IOCIOPortPullSet(pin, IOC_NO_IOPULL);
5454
return 0;
55-
};
55+
}
5656

5757
return -EINVAL;
5858
}
@@ -71,7 +71,7 @@ static int pinmux_cc13xx_cc26xx_input(const struct device *dev, uint32_t pin,
7171
case PINMUX_OUTPUT_ENABLED:
7272
IOCIOInputSet(pin, IOC_INPUT_DISABLE);
7373
return 0;
74-
};
74+
}
7575

7676
return -EINVAL;
7777
}

drivers/pm_cpu_ops/pm_cpu_ops_psci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static int psci_to_dev_err(int ret)
3434
return -EINVAL;
3535
case PSCI_RET_DENIED:
3636
return -EPERM;
37-
};
37+
}
3838

3939
return -EINVAL;
4040
}

drivers/pwm/pwm_nrfx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ static int pwm_nrfx_pin_set(const struct device *dev, uint32_t pwm,
237237
* sequence.
238238
*/
239239
while (!nrfx_pwm_is_stopped(&config->pwm)) {
240-
};
240+
}
241241
nrfx_pwm_simple_playback(&config->pwm,
242242
&config->seq,
243243
1,

drivers/spi/spi_xlnx_axi_quadspi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ static void xlnx_quadspi_start_tx(const struct device *dev)
271271
break;
272272
default:
273273
__ASSERT(0, "unsupported num_xfer_bytes");
274-
};
274+
}
275275
} else {
276276
/* No TX buffer. Use dummy TX data */
277277
dtr = 0U;

include/sys/cbprintf_internal.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static inline void cbprintf_wcpy(int *dst, int *src, uint32_t len)
204204
"Packaging of long double not enabled in Kconfig."); \
205205
while (_idx % Z_CBPRINTF_ALIGNMENT(_arg)) { \
206206
_idx += sizeof(int); \
207-
}; \
207+
} \
208208
uint32_t _arg_size = Z_CBPRINTF_ARG_SIZE(_arg); \
209209
if (_buf && _idx < _max) { \
210210
Z_CBPRINTF_STORE_ARG(&_buf[_idx], _arg); \

0 commit comments

Comments
 (0)