projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c80992
)
[media] rc: ir-spi: remove unnecessary initialization
author
Andi Shyti
<andi.shyti@samsung.com>
Mon, 27 Mar 2017 13:34:35 +0000
(10:34 -0300)
committer
Mauro Carvalho Chehab
<mchehab@s-opensource.com>
Tue, 6 Jun 2017 11:31:59 +0000
(08:31 -0300)
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-spi.c
patch
|
blob
|
history
diff --git
a/drivers/media/rc/ir-spi.c
b/drivers/media/rc/ir-spi.c
index
c8863f3
..
4ca4338
100644
(file)
--- 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;