Skip to contentSkip to conversation

media: gpio-ir-tx: Remove redundant call to local_irq_disable()

PATCH New Sean Young 1 participant 1 message Oct 2, 2024

Subsystems (3)
lore
Share & tools
lore

Sean Young

author maintainer
#0 lore raw

PATCH 1/1 media: gpio-ir-tx: Remove redundant call to local_irq_disable()

local_irq_save() already disables interrupts.

---
 drivers/media/rc/gpio-ir-tx.c | 4 ----
 1 file changed, 4 deletions(-)
drivers/media/rc/gpio-ir-tx.c +0 -4
index 1a8fea357f14..e185ead40464 100644
@@ -78,8 +78,6 @@ static void gpio_ir_tx_unmodulated(struct gpio_ir *gpio_ir, uint *txbuf,
 	ktime_t edge;
 	int i;
 
-	local_irq_disable();
-
 	edge = ktime_get();
 
 	for (i = 0; i < count; i++) {
@@ -110,8 +108,6 @@ static void gpio_ir_tx_modulated(struct gpio_ir *gpio_ir, uint *txbuf,
 	space = DIV_ROUND_CLOSEST((100 - gpio_ir->duty_cycle) *
 				  (NSEC_PER_SEC / 100), gpio_ir->carrier);
 
-	local_irq_disable();
-
 	edge = ktime_get();
 
 	for (i = 0; i < count; i++) {
Signature · 1 line
2.46.2