mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
media: gpio-ir-tx: Remove redundant call to local_irq_disable()
local_irq_save() already disables interrupts. Link: https://lore.kernel.org/all/20241002134843.rFHJYxSI@linutronix.de/ Suggested-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
2af8dbd4ab
commit
4738cae3ce
1 changed files with 0 additions and 4 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue