Commit 956bd18a authored by Andi Shyti's avatar Andi Shyti Committed by Mauro Carvalho Chehab

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

Signed-off-by: default avatarAndi Shyti <andi.shyti@samsung.com>
Signed-off-by: default avatarSean Young <sean@mess.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 5c80992e
...@@ -58,7 +58,7 @@ static int ir_spi_tx(struct rc_dev *dev, ...@@ -58,7 +58,7 @@ static int ir_spi_tx(struct rc_dev *dev,
/* convert the pulse/space signal to raw binary signal */ /* convert the pulse/space signal to raw binary signal */
for (i = 0; i < count; i++) { for (i = 0; i < count; i++) {
int j; int j;
u16 val = ((i + 1) % 2) ? idata->pulse : idata->space; u16 val;
if (len + buffer[i] >= IR_SPI_MAX_BUFSIZE) if (len + buffer[i] >= IR_SPI_MAX_BUFSIZE)
return -EINVAL; return -EINVAL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment