Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1609839 > unrolled thread

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

Started byAndi Shyti <andi.shyti@samsung.com>
First post2017-03-27 15:40 +0200
Last post2017-03-27 15:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH] [media] rc: ir-spi: remove unnecessary initialization Andi Shyti <andi.shyti@samsung.com> - 2017-03-27 15:40 +0200

#1609839 — [PATCH] [media] rc: ir-spi: remove unnecessary initialization

FromAndi Shyti <andi.shyti@samsung.com>
Date2017-03-27 15:40 +0200
Subject[PATCH] [media] rc: ir-spi: remove unnecessary initialization
Message-ID<tpD2h-kn-17@gated-at.bofh.it>
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
---
 drivers/media/rc/ir-spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web