提交 956bd18a 编写于 作者: A Andi Shyti 提交者: Mauro Carvalho Chehab

[media] rc: ir-spi: remove unnecessary initialization

Signed-off-by: NAndi Shyti <andi.shyti@samsung.com>
Signed-off-by: NSean Young <sean@mess.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 5c80992e
......@@ -58,7 +58,7 @@ static int ir_spi_tx(struct rc_dev *dev,
/* convert the pulse/space signal to raw binary signal */
for (i = 0; i < count; i++) {
int j;
u16 val = ((i + 1) % 2) ? idata->pulse : idata->space;
u16 val;
if (len + buffer[i] >= IR_SPI_MAX_BUFSIZE)
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册