提交 d5b04311 编写于 作者: H Heiner Kallweit 提交者: Mauro Carvalho Chehab

[media] media: rc: nuvoton-cir: remove unneeded lock

chip_major / chip_minor are accessed sequentially in probe only.
Therefore no lock is needed.
Signed-off-by: NHeiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
上级 2bbf9e06
......@@ -227,7 +227,6 @@ static void cir_wake_dump_regs(struct nvt_dev *nvt)
/* detect hardware features */
static int nvt_hw_detect(struct nvt_dev *nvt)
{
unsigned long flags;
u8 chip_major, chip_minor;
char chip_id[12];
bool chip_unknown = false;
......@@ -279,10 +278,8 @@ static int nvt_hw_detect(struct nvt_dev *nvt)
nvt_efm_disable(nvt);
spin_lock_irqsave(&nvt->nvt_lock, flags);
nvt->chip_major = chip_major;
nvt->chip_minor = chip_minor;
spin_unlock_irqrestore(&nvt->nvt_lock, flags);
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册