diff --git a/arch/arc/core/mpu/arc_mpu_v2_internal.h b/arch/arc/core/mpu/arc_mpu_v2_internal.h index f59b1e9184ca60c..ca91ad2bdd97f14 100644 --- a/arch/arc/core/mpu/arc_mpu_v2_internal.h +++ b/arch/arc/core/mpu/arc_mpu_v2_internal.h @@ -118,7 +118,7 @@ static inline bool _is_enabled_region(uint32_t r_index) } /** - * This internal function check if the given buffer in in the region + * This internal function check if the given buffer in the region */ static inline bool _is_in_region(uint32_t r_index, uint32_t start, uint32_t size) { diff --git a/arch/arc/core/mpu/arc_mpu_v6_internal.h b/arch/arc/core/mpu/arc_mpu_v6_internal.h index 1dbd50bdc84afb2..1213ee116735569 100644 --- a/arch/arc/core/mpu/arc_mpu_v6_internal.h +++ b/arch/arc/core/mpu/arc_mpu_v6_internal.h @@ -156,7 +156,7 @@ static inline bool _is_enabled_region(uint32_t r_index) } /** - * This internal function check if the given buffer in in the region + * This internal function check if the given buffer in the region */ static inline bool _is_in_region(uint32_t r_index, uint32_t start, uint32_t size) { diff --git a/arch/xtensa/core/README_MMU.txt b/arch/xtensa/core/README_MMU.txt index 499a251cdf2f2f4..7f4767b0049ba81 100644 --- a/arch/xtensa/core/README_MMU.txt +++ b/arch/xtensa/core/README_MMU.txt @@ -254,7 +254,7 @@ of access variability. But it also means that the TLB entries end up being stored twice in the same CPU, wasting transistors that could presumably store other useful data. -But it it also important to note that the L1 data cache on Xtensa is +But it also important to note that the L1 data cache on Xtensa is incoherent! The cache being used for refill reflects the last access on the current CPU only, and not of the underlying memory being mapped. Page table changes in the data cache of one CPU will be diff --git a/boards/native/native_posix/native_rtc.h b/boards/native/native_posix/native_rtc.h index 09fc16638824f84..c17395448af8bd4 100644 --- a/boards/native/native_posix/native_rtc.h +++ b/boards/native/native_posix/native_rtc.h @@ -44,7 +44,7 @@ extern "C" { uint64_t native_rtc_gettime_us(int clock_type); /** - * @brief Get the value of a clock split in in nsec and seconds + * @brief Get the value of a clock split in nsec and seconds * * @param clock_type Which clock to measure from * @param nsec Pointer to store the nanoseconds diff --git a/doc/connectivity/networking/api/http_server.rst b/doc/connectivity/networking/api/http_server.rst index 11a0ca2080761af..feb52f5e063b270 100644 --- a/doc/connectivity/networking/api/http_server.rst +++ b/doc/connectivity/networking/api/http_server.rst @@ -103,7 +103,7 @@ macro: HTTP_SERVICE_DEFINE(my_service, "0.0.0.0", &http_service_port, 1, 10, NULL); -Alternatively, an HTTPS service can be defined with with +Alternatively, an HTTPS service can be defined with :c:macro:`HTTPS_SERVICE_DEFINE`: .. code-block:: c diff --git a/doc/connectivity/networking/api/lwm2m.rst b/doc/connectivity/networking/api/lwm2m.rst index b340166fbff867a..c4c3df68de755b1 100644 --- a/doc/connectivity/networking/api/lwm2m.rst +++ b/doc/connectivity/networking/api/lwm2m.rst @@ -670,7 +670,7 @@ where it cannot recover. - Try to recover network connection. Then restart the client by calling :c:func:`lwm2m_rd_client_start`. This might also indicate configuration issue. -Sending of data in the table above refers to calling :c:func:`lwm2m_send_cb` or by writing into of of the observed resources where observation would trigger a notify message. +Sending of data in the table above refers to calling :c:func:`lwm2m_send_cb` or by writing into of the observed resources where observation would trigger a notify message. Receiving of data refers to receiving read, write or execute operations from the server. Application can register callbacks for these operations. Configuring lifetime and activity period diff --git a/doc/connectivity/networking/net_config_guide.rst b/doc/connectivity/networking/net_config_guide.rst index fd4f0ff402f1818..34c531ec2ad820a 100644 --- a/doc/connectivity/networking/net_config_guide.rst +++ b/doc/connectivity/networking/net_config_guide.rst @@ -174,7 +174,7 @@ TCP Options :kconfig:option:`CONFIG_NET_TCP_RETRY_COUNT` Maximum number of TCP segment retransmissions. The following formula can be used to determine the time (in ms) - that a segment will be be buffered awaiting retransmission: + that a segment will be buffered awaiting retransmission: .. math:: diff --git a/doc/develop/flash_debug/probes.rst b/doc/develop/flash_debug/probes.rst index 49507fea8f7374e..5dad65dc4633446 100644 --- a/doc/develop/flash_debug/probes.rst +++ b/doc/develop/flash_debug/probes.rst @@ -210,7 +210,7 @@ The probe may be updated to use CMSIS-DAP firmware with the following steps: be done by installing :ref:`linkserver-debug-host-tools`. #. Put the LPC-Link2 microcontroller into DFU boot mode by attaching the DFU - jumper, then then connecting to the USB debug port on the board. This + jumper, then connecting to the USB debug port on the board. This jumper is connected to ``P2_6`` on the LPC4322 SOC. #. Run the ``program_CMSIS`` script, found in the installed LPCScrypt ``scripts`` @@ -241,7 +241,7 @@ The probe may be updated to use the J-Link firmware with the following steps: be done by installing :ref:`linkserver-debug-host-tools`. #. Put the LPC-Link2 microcontroller into DFU boot mode by attaching the DFU - jumper, then then connecting to the USB debug port on the board. This + jumper, then connecting to the USB debug port on the board. This jumper is connected to ``P2_6`` on the LPC4322 SOC. #. Run the ``program_JLINK`` script, found in the installed LPCScrypt ``scripts`` diff --git a/doc/releases/release-notes-1.14.rst b/doc/releases/release-notes-1.14.rst index 45ed76258905d9c..4d8100c24ff3c78 100644 --- a/doc/releases/release-notes-1.14.rst +++ b/doc/releases/release-notes-1.14.rst @@ -2067,7 +2067,7 @@ release: * :github:`10345` - The OpenAMP remote build is for wrong board * :github:`10344` - SPI Chip Select usage is not unambiguous * :github:`10329` - SystemView overflow event -* :github:`10320` - arm: mpu: mpu_config and and mpu_regions to be declared/defined as const +* :github:`10320` - arm: mpu: mpu_config and mpu_regions to be declared/defined as const * :github:`10318` - It is not documented what YAML bindings do * :github:`10316` - net: sockets: Close doesn't unblock recv * :github:`10313` - net: sockets: Packets are leaked on TCP abort connection diff --git a/doc/releases/release-notes-3.1.rst b/doc/releases/release-notes-3.1.rst index fe631d3c7667d74..064ea831b409669 100644 --- a/doc/releases/release-notes-3.1.rst +++ b/doc/releases/release-notes-3.1.rst @@ -490,7 +490,7 @@ Drivers and Sensors series. Interrupt driven mode. Supports 1 and 8 lines in Single or Dual Transfer Modes. * STM32L5: Added support for Single Bank. - * STM32 QSPI driver was extended with with QER (SFDP, DTS), custom quad write opcode + * STM32 QSPI driver was extended with QER (SFDP, DTS), custom quad write opcode and 1-1-4 read mode. * Added support for STM32U5 series. diff --git a/doc/releases/release-notes-3.3.rst b/doc/releases/release-notes-3.3.rst index b1590a5ee1d8bfc..9867ff7cdeae12e 100644 --- a/doc/releases/release-notes-3.3.rst +++ b/doc/releases/release-notes-3.3.rst @@ -210,7 +210,7 @@ Deprecated in this release * MCUmgr subsystem, specifically the SMP transport API, is dropping `zephyr_` prefix, deprecating prefixed functions and callback type definitions with the - prefix and replacing them with with prefix-less variants. + prefix and replacing them with prefix-less variants. The :c:struct:`zephyr_smp_transport` type, representing transport object, is now replaced with :c:struct:`smp_transport`, and the later one is used, instead of the former one, by all prefix-less functions. @@ -3486,7 +3486,7 @@ Addressed issues * :github:`50732` - net: tests/net/ieee802154/l2/net.ieee802154.l2 failed on reel_board due to build failure * :github:`50709` - tests: arch: arm: arm_thread_swap fails on stm32g0 or stm32l0 * :github:`50684` - After enabling CONFIG_SPI_STM32_DMA in project config file for STM32MP157-dk2 Zephyr throwing error -* :github:`50665` - MEC15xx/MEC1501: UART and and special purpose pins missing pinctrl configuration +* :github:`50665` - MEC15xx/MEC1501: UART and special purpose pins missing pinctrl configuration * :github:`50658` - Bluetooth: BLE stack notifications blocks host side for too long (``drivers/bluetooth/hci/spi.c`` and ``hci_spi``) * :github:`50656` - Wrong definition of bank size for intel memory management driver. * :github:`50655` - STM32WB55 Bus Fault when connecting then disconnecting then connecting then disconnecting then connecting diff --git a/doc/services/mem_mgmt/index.rst b/doc/services/mem_mgmt/index.rst index d42b72ebe51bedc..f29165e769a4d2f 100644 --- a/doc/services/mem_mgmt/index.rst +++ b/doc/services/mem_mgmt/index.rst @@ -92,7 +92,7 @@ to define and create a set of memory heaps from which the user can allocate memory from with certain attributes / capabilities. When the :kconfig:option:`CONFIG_MEM_ATTR_HEAP` is set, every region marked -with one of the memory attributes listed in in +with one of the memory attributes listed in :zephyr_file:`include/zephyr/dt-bindings/memory-attr/memory-attr-sw.h` is added to a pool of memory heaps used for dynamic allocation of memory buffers with certain attributes. diff --git a/drivers/adc/adc_ads1x1x.c b/drivers/adc/adc_ads1x1x.c index 6b2a476f24b9e06..ca8cf9367835fb4 100644 --- a/drivers/adc/adc_ads1x1x.c +++ b/drivers/adc/adc_ads1x1x.c @@ -616,7 +616,7 @@ static const struct adc_driver_api ads1x1x_api = { /* The ADS111X provides 16 bits of data in binary two's complement format * A positive full-scale (+FS) input produces an output code of 7FFFh and a * negative full-scale (–FS) input produces an output code of 8000h. Single - * ended signal measurements only only use the positive code range from + * ended signal measurements only use the positive code range from * 0000h to 7FFFh */ #define ADS111X_RESOLUTION 16 @@ -659,7 +659,7 @@ DT_INST_FOREACH_STATUS_OKAY(ADS1113_INIT) /* The ADS101X provides 12 bits of data in binary two's complement format * A positive full-scale (+FS) input produces an output code of 7FFh and a * negative full-scale (–FS) input produces an output code of 800h. Single - * ended signal measurements only only use the positive code range from + * ended signal measurements only use the positive code range from * 000h to 7FFh */ #define ADS101X_RESOLUTION 12 diff --git a/drivers/audio/dmic_nrfx_pdm.c b/drivers/audio/dmic_nrfx_pdm.c index 15711073d77bf1c..c663aa177b28f68 100644 --- a/drivers/audio/dmic_nrfx_pdm.c +++ b/drivers/audio/dmic_nrfx_pdm.c @@ -207,7 +207,7 @@ static bool check_pdm_frequencies(const struct dmic_nrfx_pdm_drv_cfg *drv_cfg, better_found = true; } - /* Since frequencies are are in ascending order, stop + /* Since frequencies are in ascending order, stop * checking next ones for the current ratio after * resulting PCM rate goes above the one requested. */ diff --git a/drivers/bluetooth/hci/Kconfig b/drivers/bluetooth/hci/Kconfig index c311fc185eecbc8..5e2a4f5ae2b7c6f 100644 --- a/drivers/bluetooth/hci/Kconfig +++ b/drivers/bluetooth/hci/Kconfig @@ -160,7 +160,7 @@ config BT_SPI_INIT_PRIORITY default 75 config BT_BLUENRG_ACI - bool "ACI message with with BlueNRG-based devices" + bool "ACI message with BlueNRG-based devices" select BT_HCI_SET_PUBLIC_ADDR help Enable support for devices compatible with the BlueNRG Bluetooth diff --git a/drivers/clock_control/clock_control_mchp_xec.c b/drivers/clock_control/clock_control_mchp_xec.c index c3ff0bbb78f2c44..f24c2e896fbbae0 100644 --- a/drivers/clock_control/clock_control_mchp_xec.c +++ b/drivers/clock_control/clock_control_mchp_xec.c @@ -267,7 +267,7 @@ static int periph_clk_src_using_pin(enum periph_clk32k_src src) /* MEC15xx uses the same 32KHz source for both PLL and Peripheral 32K clock domains. * We ignore the peripheral clock source. * If XTAL is selected (parallel) or single-ended the external 32KHz MUST stay on - * even when when VTR goes off. + * even when VTR goes off. * If PIN(32KHZ_IN pin) as the external source, hardware can auto-switch to internal * silicon OSC if the signal on the 32KHZ_PIN goes away. * We ignore th diff --git a/drivers/dma/dma_xmc4xxx.c b/drivers/dma/dma_xmc4xxx.c index 26acef93e9f2ea9..50a27459de44154 100644 --- a/drivers/dma/dma_xmc4xxx.c +++ b/drivers/dma/dma_xmc4xxx.c @@ -393,7 +393,7 @@ static int dma_xmc4xxx_get_status(const struct device *dev, uint32_t channel, stat->pending_length = dma_channel->block_ts - XMC_DMA_CH_GetTransferredData(dma, channel); stat->pending_length *= dma_channel->source_data_size; - /* stat->dir and other remaining fields are not set. They are are not */ + /* stat->dir and other remaining fields are not set. They are not */ /* useful for xmc4xxx peripheral drivers. */ return 0; diff --git a/drivers/ethernet/eth_smsc91x.c b/drivers/ethernet/eth_smsc91x.c index cac411362175ded..4bef149c75a97f2 100644 --- a/drivers/ethernet/eth_smsc91x.c +++ b/drivers/ethernet/eth_smsc91x.c @@ -522,7 +522,7 @@ static int smsc_send_pkt(struct smsc_data *sc, uint8_t *buf, uint16_t len) smsc_write_2(sc, DATA0, len + PKT_CTRL_DATA_LEN); smsc_write_multi_2(sc, DATA0, (uint16_t *)buf, len / 2); - /* Push out the control byte and and the odd byte if needed. */ + /* Push out the control byte and the odd byte if needed. */ if (len & 1) { smsc_write_2(sc, DATA0, (CTRL_ODD << 8) | buf[len - 1]); } else { diff --git a/drivers/sdhc/rcar_mmc.c b/drivers/sdhc/rcar_mmc.c index 8cea5f6fb9a6688..b6e8c216a739a7a 100644 --- a/drivers/sdhc/rcar_mmc.c +++ b/drivers/sdhc/rcar_mmc.c @@ -2045,7 +2045,7 @@ static int rcar_mmc_init_controller_regs(const struct device *dev) reg |= RCAR_MMC_DMA_MODE_ADDR_INC | RCAR_MMC_DMA_MODE_WIDTH; rcar_mmc_write_reg32(dev, RCAR_MMC_DMA_MODE, reg); - /* store version of of introductory IP */ + /* store version of introductory IP */ data->ver = rcar_mmc_read_reg32(dev, RCAR_MMC_VERSION); data->ver &= RCAR_MMC_VERSION_IP; diff --git a/drivers/sensor/bosch/bme280/bme280.c b/drivers/sensor/bosch/bme280/bme280.c index 8c0f1bead3a3acc..95b6cdfe9c3fcf0 100644 --- a/drivers/sensor/bosch/bme280/bme280.c +++ b/drivers/sensor/bosch/bme280/bme280.c @@ -121,7 +121,7 @@ static int bme280_wait_until_ready(const struct device *dev) uint8_t status = 0; int ret; - /* Wait for NVM to copy and and measurement to be completed */ + /* Wait for NVM to copy and measurement to be completed */ do { k_sleep(K_MSEC(3)); ret = bme280_reg_read(dev, BME280_REG_STATUS, &status, 1); diff --git a/drivers/serial/leuart_gecko.c b/drivers/serial/leuart_gecko.c index cc89a56428d334c..daaff59069c7e33 100644 --- a/drivers/serial/leuart_gecko.c +++ b/drivers/serial/leuart_gecko.c @@ -65,7 +65,7 @@ static void leuart_gecko_poll_out(const struct device *dev, unsigned char c) LEUART_TypeDef *base = DEV_BASE(dev); /* LEUART_Tx function already waits for the transmit buffer being empty - * and and waits for the bus to be free to transmit. + * and waits for the bus to be free to transmit. */ LEUART_Tx(base, c); } diff --git a/dts/bindings/pinctrl/ti,cc13xx-cc26xx-pinctrl.yaml b/dts/bindings/pinctrl/ti,cc13xx-cc26xx-pinctrl.yaml index fcc24e8928be04a..307cb7c0090ba73 100644 --- a/dts/bindings/pinctrl/ti,cc13xx-cc26xx-pinctrl.yaml +++ b/dts/bindings/pinctrl/ti,cc13xx-cc26xx-pinctrl.yaml @@ -123,7 +123,7 @@ child-binding: configured as an output. 2: min 2 mA (SoC default) 4: min 4 mA - 8: min 8 mA for for double drive strength IOs, min 4 mA for normal IOs + 8: min 8 mA for double drive strength IOs, min 4 mA for normal IOs ti,input-edge-detect: type: int diff --git a/include/zephyr/bluetooth/audio/media_proxy.h b/include/zephyr/bluetooth/audio/media_proxy.h index 16bb978bfcc48b4..092d1c99890beb2 100644 --- a/include/zephyr/bluetooth/audio/media_proxy.h +++ b/include/zephyr/bluetooth/audio/media_proxy.h @@ -787,7 +787,7 @@ int media_proxy_ctrl_get_track_position(struct media_player *player); * @brief Set Track Position * * Set the playing position of the media player in the current - * track. The position is given in in hundredths of a second, + * track. The position is given in hundredths of a second, * from the beginning of the track of the track for positive * values, and (backwards) from the end of the track for * negative values. @@ -1178,7 +1178,7 @@ struct media_proxy_pl_calls { * @brief Set Track Position * * Set the playing position of the media player in the current - * track. The position is given in in hundredths of a second, + * track. The position is given in hundredths of a second, * from the beginning of the track of the track for positive * values, and (backwards) from the end of the track for * negative values. diff --git a/include/zephyr/drivers/i2c/rtio.h b/include/zephyr/drivers/i2c/rtio.h index 2f094540f70119f..a7e3919d7dd6fdc 100644 --- a/include/zephyr/drivers/i2c/rtio.h +++ b/include/zephyr/drivers/i2c/rtio.h @@ -43,7 +43,7 @@ struct i2c_rtio { }; /** - * @brief Copy an an array of i2c_msgs to rtio submissions and a transaction + * @brief Copy an array of i2c_msgs to rtio submissions and a transaction * * @retval sqe Last sqe setup in the copy * @retval NULL Not enough memory to copy the transaction diff --git a/include/zephyr/kernel/mm/demand_paging.h b/include/zephyr/kernel/mm/demand_paging.h index 38587415ce1db04..ab2ca7d0693252e 100644 --- a/include/zephyr/kernel/mm/demand_paging.h +++ b/include/zephyr/kernel/mm/demand_paging.h @@ -252,7 +252,7 @@ void k_mem_paging_eviction_remove(struct k_mem_page_frame *pf); * * The architecture-specific memory fault handler will invoke this to tell the * eviction algorithm the provided physical address belongs to a page frame - * being accessed and such page frame should become unlikely to be be + * being accessed and such page frame should become unlikely to be * considered as the next eviction candidate. * * This function is invoked with interrupts locked. diff --git a/include/zephyr/net/net_if.h b/include/zephyr/net/net_if.h index 658f30925922a42..eaf2758e92f0b07 100644 --- a/include/zephyr/net/net_if.h +++ b/include/zephyr/net/net_if.h @@ -2985,7 +2985,7 @@ static inline void net_if_unset_promisc(struct net_if *iface) * @param iface Pointer to network interface * * @return True if interface is in promisc mode, - * False if interface is not in in promiscuous mode. + * False if interface is not in promiscuous mode. */ #if defined(CONFIG_NET_PROMISCUOUS_MODE) bool net_if_is_promisc(struct net_if *iface); diff --git a/include/zephyr/sys/onoff.h b/include/zephyr/sys/onoff.h index 4c50aaa2a4e34f1..9a3d19aea251e1d 100644 --- a/include/zephyr/sys/onoff.h +++ b/include/zephyr/sys/onoff.h @@ -340,7 +340,7 @@ static inline bool onoff_has_error(const struct onoff_manager *mgr) * * @retval non-negative the observed state of the machine at the time * the request was processed, if successful. - * @retval -EIO if service has recorded an an error. + * @retval -EIO if service has recorded an error. * @retval -EINVAL if the parameters are invalid. * @retval -EAGAIN if the reference count would overflow. */ @@ -361,7 +361,7 @@ int onoff_request(struct onoff_manager *mgr, * * @retval non-negative the observed state (ONOFF_STATE_ON) of the * machine at the time of the release, if the release succeeds. - * @retval -EIO if service has recorded an an error. + * @retval -EIO if service has recorded an error. * @retval -ENOTSUP if the machine is not in a state that permits * release. */ diff --git a/include/zephyr/sys/sys_heap.h b/include/zephyr/sys/sys_heap.h index 82f7202048e0838..942a51e5ab9ccb0 100644 --- a/include/zephyr/sys/sys_heap.h +++ b/include/zephyr/sys/sys_heap.h @@ -42,7 +42,7 @@ extern "C" { * are constant time (though there is a search of the smallest bucket * that has a compile-time-configurable upper bound, setting this to * extreme values results in an effectively linear search of the - * list), objectively fast (~hundred instructions) and and amenable to + * list), objectively fast (~hundred instructions) and amenable to * locked operation. */ diff --git a/kernel/Kconfig b/kernel/Kconfig index 57c8b2997598c13..3e4b127f436a8b1 100644 --- a/kernel/Kconfig +++ b/kernel/Kconfig @@ -299,7 +299,7 @@ choice SCHED_ALGORITHM prompt "Scheduler priority queue algorithm" default SCHED_DUMB help - The kernel can be built with with several choices for the + The kernel can be built with several choices for the ready queue implementation, offering different choices between code size, constant factor runtime overhead and performance scaling when many threads are added. diff --git a/kernel/userspace.c b/kernel/userspace.c index 6fcfacee8b0cafc..7a909c04f78f8d8 100644 --- a/kernel/userspace.c +++ b/kernel/userspace.c @@ -82,7 +82,7 @@ static void clear_perms_cb(struct k_object *ko, void *ctx_ptr); const char *otype_to_str(enum k_objects otype) { const char *ret; - /* -fdata-sections doesn't work right except in very very recent + /* -fdata-sections doesn't work right except in very recent * GCC and these literal strings would appear in the binary even if * otype_to_str was omitted by the linker */ diff --git a/samples/subsys/usb/webusb/src/main.c b/samples/subsys/usb/webusb/src/main.c index 77866932e02d759..f4ce641211b3c42 100644 --- a/samples/subsys/usb/webusb/src/main.c +++ b/samples/subsys/usb/webusb/src/main.c @@ -64,7 +64,7 @@ static struct msosv2_descriptor_t { .wLength = sizeof(struct msosv2_function_subset_header), .wDescriptorType = MS_OS_20_SUBSET_HEADER_FUNCTION, /* The WebUSB interface number becomes the first when CDC_ACM is enabled by - * configuration. Beware that if this sample is used as as inspiration for + * configuration. Beware that if this sample is used as inspiration for * applications, where the WebUSB interface is no longer the first, * remember to adjust bFirstInterface. */ diff --git a/samples/tfm_integration/psa_crypto/src/psa_attestation.c b/samples/tfm_integration/psa_crypto/src/psa_attestation.c index 144239b774aa8df..0bc40ded4ec5c58 100644 --- a/samples/tfm_integration/psa_crypto/src/psa_attestation.c +++ b/samples/tfm_integration/psa_crypto/src/psa_attestation.c @@ -33,7 +33,7 @@ psa_status_t att_get_iat(uint8_t *ch_buffer, uint32_t ch_sz, size_t token_buf_size = ATT_MAX_TOKEN_SIZE; - /* Call with with bigger challenge object than allowed */ + /* Call with bigger challenge object than allowed */ /* * First determine how large the token is on this system. diff --git a/scripts/build/subfolder_list.py b/scripts/build/subfolder_list.py index d6bfdccf88606c4..2570ebe8534daf6 100644 --- a/scripts/build/subfolder_list.py +++ b/scripts/build/subfolder_list.py @@ -30,7 +30,7 @@ def parse_args(): help='File to write containing a list of all \ directories found') parser.add_argument('-t', '--trigger-file', required=False, - help='Trigger file to be be touched to re-run CMake') + help='Trigger file to be touched to re-run CMake') args = parser.parse_args() diff --git a/scripts/kconfig/kconfiglib.py b/scripts/kconfig/kconfiglib.py index f81979ec2c2597d..3bb2bbaecd3546c 100644 --- a/scripts/kconfig/kconfiglib.py +++ b/scripts/kconfig/kconfiglib.py @@ -3729,7 +3729,7 @@ def _add_props_to_sym(self, node): if node.is_configdefault: # Store any defaults for later application after the complete tree - # is known. The current length of of the default array is stored so + # is known. The current length of the default array is stored so # the configdefaults can be inserted in the order they originally # appeared. sym.configdefaults.append((len(sym.defaults), node.defaults)) diff --git a/scripts/native_simulator/native/src/include/native_rtc.h b/scripts/native_simulator/native/src/include/native_rtc.h index e8833629263f9ae..2c8dfb24da162e2 100644 --- a/scripts/native_simulator/native/src/include/native_rtc.h +++ b/scripts/native_simulator/native/src/include/native_rtc.h @@ -43,7 +43,7 @@ extern "C" { uint64_t native_rtc_gettime_us(int clock_type); /** - * @brief Get the value of a clock split in in nsec and seconds + * @brief Get the value of a clock split in nsec and seconds * * @param clock_type Which clock to measure from * @param nsec Pointer to store the nanoseconds diff --git a/soc/ite/ec/common/chip_chipregs.h b/soc/ite/ec/common/chip_chipregs.h index c585271542eab30..cac50eb7b343e56 100644 --- a/soc/ite/ec/common/chip_chipregs.h +++ b/soc/ite/ec/common/chip_chipregs.h @@ -615,7 +615,7 @@ struct ep_ext_regs_9x { }; /* From BXh to BDh are EP FIFO 1-3 Control 0/1 Registers, and their - * definitions as as follows: + * definitions as follows: * B8h: EP_FIFO1_CONTROL0_REG * B9h: EP_FIFO1_CONTROL1_REG * BAh: EP_FIFO2_CONTROL0_REG @@ -657,7 +657,7 @@ struct ep_ext_regs_bx { /* From D6h to DDh are EP Extended Control Registers, and their - * definitions as as follows: + * definitions as follows: * D6h: EP0_EXT_CTRL1 * D7h: EP0_EXT_CTRL2 * D8h: EP1_EXT_CTRL1 diff --git a/subsys/bluetooth/audio/shell/media_controller.c b/subsys/bluetooth/audio/shell/media_controller.c index fe6943db6fd549b..487b71a8bac4d2d 100644 --- a/subsys/bluetooth/audio/shell/media_controller.c +++ b/subsys/bluetooth/audio/shell/media_controller.c @@ -603,7 +603,7 @@ static int cmd_media_read_playback_speed(const struct shell *sh, size_t argc, ch int err = media_proxy_ctrl_get_playback_speed(current_player); if (err) { - shell_error(ctx_shell, "Playback speed get get failed (%d)", err); + shell_error(ctx_shell, "Playback speed get failed (%d)", err); } return err; diff --git a/subsys/bluetooth/controller/ticker/ticker.c b/subsys/bluetooth/controller/ticker/ticker.c index efeeff1bae7bdc0..96474e7a0926fcb 100644 --- a/subsys/bluetooth/controller/ticker/ticker.c +++ b/subsys/bluetooth/controller/ticker/ticker.c @@ -1543,7 +1543,7 @@ static void ticks_to_expire_prep(struct ticker_node *ticker, * * @details Calculates whether the remainder should increments expiration time * for above-microsecond precision counter HW. The remainder enables improved - * ticker precision, but is disabled for for sub-microsecond precision + * ticker precision, but is disabled for sub-microsecond precision * configurations. * Note: This is the same functionality as ticker_remainder_inc(), except this * function allows doing the calculation without modifying any tickers @@ -1574,7 +1574,7 @@ static inline uint8_t ticker_add_to_remainder(uint32_t *remainder, uint32_t to_a * * @details Calculates whether the remainder should increments expiration time * for above-microsecond precision counter HW. The remainder enables improved - * ticker precision, but is disabled for for sub-microsecond precision + * ticker precision, but is disabled for sub-microsecond precision * configurations. * * @param ticker Pointer to ticker node @@ -1592,7 +1592,7 @@ static uint8_t ticker_remainder_inc(struct ticker_node *ticker) * * @details Calculates whether the remainder should decrements expiration time * for above-microsecond precision counter HW. The remainder enables improved - * ticker precision, but is disabled for for sub-microsecond precision + * ticker precision, but is disabled for sub-microsecond precision * configurations. * * @param ticker Pointer to ticker node diff --git a/subsys/bluetooth/host/Kconfig b/subsys/bluetooth/host/Kconfig index 49277097da966e3..7895b47cfa880c9 100644 --- a/subsys/bluetooth/host/Kconfig +++ b/subsys/bluetooth/host/Kconfig @@ -765,7 +765,7 @@ config BT_SCAN_WITH_IDENTITY always use a non-resolvable private address (NRPA) in order to avoid disclosing local identity information. By not scanning with the identity address the scanner will receive directed advertise reports - for for the local identity. If this use case is required, then enable + for the local identity. If this use case is required, then enable this option. config BT_SCAN_AND_INITIATE_IN_PARALLEL diff --git a/subsys/lorawan/services/clock_sync.c b/subsys/lorawan/services/clock_sync.c index c736a396deeedd7..5249f43b8813843 100644 --- a/subsys/lorawan/services/clock_sync.c +++ b/subsys/lorawan/services/clock_sync.c @@ -23,7 +23,7 @@ LOG_MODULE_REGISTER(lorawan_clock_sync, CONFIG_LORAWAN_SERVICES_LOG_LEVEL); * Version of LoRaWAN Application Layer Clock Synchronization Specification * * This implementation only supports TS003-2.0.0, as the previous revision TS003-1.0.0 - * requested to temporarily disable ADR and and set nb_trans to 1. This causes issues on the + * requested to temporarily disable ADR and set nb_trans to 1. This causes issues on the * server side and is not recommended anymore. */ #define CLOCK_SYNC_PACKAGE_VERSION 2 diff --git a/subsys/mgmt/mcumgr/grp/img_mgmt/src/zephyr_img_mgmt.c b/subsys/mgmt/mcumgr/grp/img_mgmt/src/zephyr_img_mgmt.c index b24babc6f8cbff8..1bc40d124415e94 100644 --- a/subsys/mgmt/mcumgr/grp/img_mgmt/src/zephyr_img_mgmt.c +++ b/subsys/mgmt/mcumgr/grp/img_mgmt/src/zephyr_img_mgmt.c @@ -186,7 +186,7 @@ img_mgmt_flash_area_id(int slot) * find any unused and non-active available (auto-select); any other positive * value is direct (slot + 1) to be used; if checks are positive, then area * ID is returned, -1 is returned otherwise. - * Note that auto-selection is performed only between two two first slots. + * Note that auto-selection is performed only between two first slots. */ static int img_mgmt_get_unused_slot_area_id(int slot) { diff --git a/subsys/mgmt/osdp/src/osdp_pd.c b/subsys/mgmt/osdp/src/osdp_pd.c index bbaa24a5f0ec97c..a8732b27d806269 100644 --- a/subsys/mgmt/osdp/src/osdp_pd.c +++ b/subsys/mgmt/osdp/src/osdp_pd.c @@ -700,7 +700,7 @@ static int pd_build_reply(struct osdp_pd *pd, uint8_t *buf, int max_len) } /** * If COMSET succeeds, the PD must reply with the old params and - * then switch to the new params from then then on. We have the + * then switch to the new params from then on. We have the * new params in the commands struct that we just enqueued so * we can peek at tail of command queue and set that to * pd->addr/pd->baud_rate. diff --git a/subsys/mgmt/osdp/src/osdp_sc.c b/subsys/mgmt/osdp/src/osdp_sc.c index e816aa49f82fd22..cb5d30ab782e94b 100644 --- a/subsys/mgmt/osdp/src/osdp_sc.c +++ b/subsys/mgmt/osdp/src/osdp_sc.c @@ -92,7 +92,7 @@ void osdp_compute_cp_cryptogram(struct osdp_pd *pd) /** * Like memcmp; but operates at constant time. * - * Returns 0 if memory pointed to by s1 and and s2 are identical; non-zero + * Returns 0 if memory pointed to by s1 and s2 are identical; non-zero * otherwise. */ static int osdp_ct_compare(const void *s1, const void *s2, size_t len) diff --git a/subsys/net/l2/ethernet/vlan.c b/subsys/net/l2/ethernet/vlan.c index f8e21efbbb07276..6a26f80f6115a0f 100644 --- a/subsys/net/l2/ethernet/vlan.c +++ b/subsys/net/l2/ethernet/vlan.c @@ -190,7 +190,7 @@ static struct vlan_context *get_vlan(struct net_if *iface, goto out; } - /* If the interface is virtual, then it should be be the VLAN one. + /* If the interface is virtual, then it should be the VLAN one. * Just get the Ethernet interface it points to to get the context. */ ctx = get_vlan_ctx(net_virtual_get_iface(iface), vlan_tag, false); diff --git a/subsys/usb/device/usb_device.c b/subsys/usb/device/usb_device.c index a3670a16804b7b1..e3a065fae1af076 100644 --- a/subsys/usb/device/usb_device.c +++ b/subsys/usb/device/usb_device.c @@ -1446,7 +1446,7 @@ int usb_wakeup_request(void) /* * The functions class_handler(), custom_handler() and vendor_handler() * go through the interfaces one after the other and compare the - * bInterfaceNumber with the wIndex and and then call the appropriate + * bInterfaceNumber with the wIndex and then call the appropriate * callback of the USB function. * Note, a USB function can have more than one interface and the * request does not have to be directed to the first interface (unlikely). diff --git a/tests/bluetooth/df/connectionless_cte_chains/src/common.c b/tests/bluetooth/df/connectionless_cte_chains/src/common.c index a2d2828731614bc..34c6ee1e6445d51 100644 --- a/tests/bluetooth/df/connectionless_cte_chains/src/common.c +++ b/tests/bluetooth/df/connectionless_cte_chains/src/common.c @@ -253,7 +253,7 @@ void common_release_per_adv_chain(struct ll_adv_set *adv_set) /* * @brief Helper function that validates content of periodic advertising PDU. * - * The function verifies if content of periodic advertising PDU as as expected. The function + * The function verifies if content of periodic advertising PDU as expected. The function * verifies two types of PDUs: AUX_SYNC_IND and AUX_CHAIN_IND. AUX_CHAIN_IND is validated * as if its superior PDU is AUX_SYNC_IND only. * diff --git a/tests/bsim/bluetooth/mesh/src/test_sar.c b/tests/bsim/bluetooth/mesh/src/test_sar.c index 61c7946235d7229..122c85b9e55c4c2 100644 --- a/tests/bsim/bluetooth/mesh/src/test_sar.c +++ b/tests/bsim/bluetooth/mesh/src/test_sar.c @@ -305,7 +305,7 @@ static const struct bst_test_instance test_sar[] = { TEST_CASE(cli, max_len_sdu_slow_send, "Send a 32-segment message with SAR configured with slowest timings."), TEST_CASE(srv, max_len_sdu_slow_receive, - "Receive a 32-segment message with with SAR configured with slowest timings."), + "Receive a 32-segment message with SAR configured with slowest timings."), BSTEST_END_MARKER}; diff --git a/tests/kernel/common/src/irq_offload.c b/tests/kernel/common/src/irq_offload.c index 544b1e8b0ab20a3..bffeb0dc94e6d85 100644 --- a/tests/kernel/common/src/irq_offload.c +++ b/tests/kernel/common/src/irq_offload.c @@ -116,7 +116,7 @@ ZTEST(common_1cpu, test_nested_irq_offload) /* Do this in a thread to exercise a regression case: the * offload handler will suspend the thread it interrupted, * ensuring that the interrupt returns back to this thread and - * effects a context switch of of the nested interrupt (see + * effects a context switch of the nested interrupt (see * #45779). Requires that this be a 1cpu test case, * obviously. */ diff --git a/tests/kernel/fifo/fifo_usage/src/main.c b/tests/kernel/fifo/fifo_usage/src/main.c index 2c78a3c96dc02c5..55263c6ea48016f 100644 --- a/tests/kernel/fifo/fifo_usage/src/main.c +++ b/tests/kernel/fifo/fifo_usage/src/main.c @@ -20,7 +20,7 @@ * Scenario #2 * Test Thread enters an item into fifo2, starts a Child Thread and * extract an item from fifo1 once the item is there. The Child Thread - * will extract an item from fifo2 once the item is there and and enter + * will extract an item from fifo2 once the item is there and enter * an item to fifo1. The flow of control goes from Test Thread to * Child Thread and so forth. * @@ -175,7 +175,7 @@ ZTEST(fifo_usage, test_single_fifo_play) * @brief Tests dual fifo get and put operation in thread context * @details test Thread enters an item into fifo2, starts a Child Thread and * extract an item from fifo1 once the item is there. The Child Thread - * will extract an item from fifo2 once the item is there and and enter + * will extract an item from fifo2 once the item is there and enter * an item to fifo1. The flow of control goes from Test Thread to * Child Thread and so forth. * @see k_fifo_get(), k_fifo_is_empty(), k_fifo_put(), #K_FIFO_DEFINE(x) diff --git a/tests/kernel/sched/deadline/src/main.c b/tests/kernel/sched/deadline/src/main.c index 7e1cf7a63c8a982..223d48eb199ca7c 100644 --- a/tests/kernel/sched/deadline/src/main.c +++ b/tests/kernel/sched/deadline/src/main.c @@ -20,7 +20,7 @@ K_THREAD_STACK_ARRAY_DEFINE(worker_stacks, NUM_THREADS, STACK_SIZE); int thread_deadlines[NUM_THREADS]; -/* The number of worker threads that ran, and and array of their +/* The number of worker threads that ran, and array of their * indices in execution order */ int n_exec; diff --git a/tests/kernel/stack/stack/src/main.c b/tests/kernel/stack/stack/src/main.c index f0a1ad7bfb3c3a0..a5c54e5462fb193 100644 --- a/tests/kernel/stack/stack/src/main.c +++ b/tests/kernel/stack/stack/src/main.c @@ -20,7 +20,7 @@ * Scenario #2 * Test thread enters an item into stack2, starts a Child thread and * extract an item from stack1 once the item is there. The child thread - * will extract an item from stack2 once the item is there and and enter + * will extract an item from stack2 once the item is there and enter * an item to stack1. The flow of control goes from Test thread to Child * thread and so forth. * diff --git a/tests/kernel/xip/src/main.c b/tests/kernel/xip/src/main.c index 9bd3f3e3229bb70..f43ecd869db8e26 100644 --- a/tests/kernel/xip/src/main.c +++ b/tests/kernel/xip/src/main.c @@ -13,7 +13,7 @@ * * @details This module tests that XIP performs as expected. If the first * task is even activated that is a good indication that XIP is - * working. However, the test does do some some testing on + * working. However, the test does do some testing on * global variables for completeness sake. * * @{ diff --git a/tests/subsys/pm/power_domain/src/main.c b/tests/subsys/pm/power_domain/src/main.c index 5088d1b37bfbf5f..3c4e1882890dc2c 100644 --- a/tests/subsys/pm/power_domain/src/main.c +++ b/tests/subsys/pm/power_domain/src/main.c @@ -294,7 +294,7 @@ ZTEST(power_domain_1cpu, test_on_power_domain) pm_device_power_domain_add(devc, domain); zassert_true(pm_device_on_power_domain(devc), "devc is not in the power domain."); pm_device_power_domain_remove(devc, domain); - zassert_false(pm_device_on_power_domain(devc), "devc in in the power domain."); + zassert_false(pm_device_on_power_domain(devc), "devc in the power domain."); } ZTEST_SUITE(power_domain_1cpu, NULL, NULL, ztest_simple_1cpu_before,