From: Andi Shyti Date: Mon, 27 Mar 2017 13:34:35 +0000 (-0300) Subject: [media] rc: ir-spi: remove unnecessary initialization X-Git-Tag: v4.13-rc1~141^2~285 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=956bd18a2769bbdc979c6917efa8ad4600f50d0e;p=karo-tx-linux.git [media] rc: ir-spi: remove unnecessary initialization Signed-off-by: Andi Shyti Signed-off-by: Sean Young Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/rc/ir-spi.c b/drivers/media/rc/ir-spi.c index c8863f36686a..4ca43383a8e8 100644 --- a/drivers/media/rc/ir-spi.c +++ b/drivers/media/rc/ir-spi.c @@ -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;