“32b32735ca1439e2ead658dd63234c0c380af8ac”上不存在“git@gitcode.net:openanolis/cloud-kernel.git”
提交 40feb52f 编写于 作者: H Heinrich Schuchardt 提交者: Mauro Carvalho Chehab

[media] media: saa7134: remove if based on uninitialized variable

Variable b is not initialized.
Only with a small chance it has random value 0xFF.
Remove if statement based on this value.
Signed-off-by: NHeinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 aecfa5af
......@@ -133,10 +133,6 @@ static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_type *protocol,
if (0x40000 & ~gpio)
return 0; /* No button press */
/* No button press - only before first key pressed */
if (b == 0xFF)
return 0;
/* poll IR chip */
/* weak up the IR chip */
b = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
新手
引导
客服 返回
顶部