diff mbox

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

Message ID 20170327133435.23492-1-andi.shyti@samsung.com (mailing list archive)
State New, archived
Headers show

Commit Message

Andi Shyti March 27, 2017, 1:34 p.m. UTC
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
 drivers/media/rc/ir-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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;