Message ID | 20170327133435.23492-1-andi.shyti@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-media-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4280D602C8 for <patchwork-linux-media@patchwork.kernel.org>; Mon, 27 Mar 2017 13:35:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 32FAA28387 for <patchwork-linux-media@patchwork.kernel.org>; Mon, 27 Mar 2017 13:35:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 276BC2839B; Mon, 27 Mar 2017 13:35:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BFF2228387 for <patchwork-linux-media@patchwork.kernel.org>; Mon, 27 Mar 2017 13:35:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752979AbdC0Nev (ORCPT <rfc822;patchwork-linux-media@patchwork.kernel.org>); Mon, 27 Mar 2017 09:34:51 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:45505 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752949AbdC0Net (ORCPT <rfc822;linux-media@vger.kernel.org>); Mon, 27 Mar 2017 09:34:49 -0400 Received: from epcas1p1.samsung.com (unknown [182.195.41.45]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0ONH00J0E71YES80@mailout3.samsung.com>; Mon, 27 Mar 2017 22:34:46 +0900 (KST) Received: from epsmges5p3.samsung.com (unknown [182.195.40.65]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20170327133445epcas1p4c1cb010ee5f9ac003a3ec46982233290~vwIaXFO000597105971epcas1p4T; Mon, 27 Mar 2017 13:34:45 +0000 (GMT) Received: from epcas5p4.samsung.com ( [182.195.41.42]) by epsmges5p3.samsung.com (EPCPMTA) with SMTP id DB.E6.18112.5F419D85; Mon, 27 Mar 2017 22:34:45 +0900 (KST) Received: from epcpsbgm2new.samsung.com (u27.gpu120.samsung.co.kr [203.254.230.27]) by epcas5p4.samsung.com (KnoxPortal) with ESMTP id 20170327133445epcas5p4eef3b88af9e952fb8d0ab00eb4dafbd5~vwIaEhqAe2457224572epcas5p40; Mon, 27 Mar 2017 13:34:45 +0000 (GMT) X-AuditID: b6c32a2e-f79506d0000046c0-36-58d914f587fc Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2new.samsung.com (EPCPMTA) with SMTP id 16.CA.05013.5F419D85; Mon, 27 Mar 2017 22:34:45 +0900 (KST) Received: from gangnam.samsung ([10.113.62.47]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0ONH007S271S1680@mmp2.samsung.com>; Mon, 27 Mar 2017 22:34:45 +0900 (KST) From: Andi Shyti <andi.shyti@samsung.com> To: Sean Young <sean@mess.org>, Mauro Carvalho Chehab <mchehab@kernel.org> Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Andi Shyti <andi.shyti@samsung.com>, Andi Shyti <andi@etezian.org> Subject: [PATCH] [media] rc: ir-spi: remove unnecessary initialization Date: Mon, 27 Mar 2017 22:34:35 +0900 Message-id: <20170327133435.23492-1-andi.shyti@samsung.com> X-Mailer: git-send-email 2.11.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHKsWRmVeSWpSXmKPExsWy7bCmlu5XkZsRBg+XW1psP/KM1WLxj+dM F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Tas62TyWvLH26NuyitHj8ya5ANYoN5uM 1MSU1CKF1Lzk/JTMvHRbpdAQN10LJYW8xNxUW6UIXd+QICWFssScUiDPyAANODgHuAcr6dsl uGW8a1nKXtDAWnHi107WBsZGli5GTg4JAROJeW+bmSBsMYkL99azgdhCArMYJaZeUeli5AKy PzJKTHnZwA6SYBPQlGi6/QOsSETAS+LonRYwm1mgmVFi93UjEFtYwE3i+P0FzCA2i4CqxI05 nWALeAWsJc60rIZaLC+xq+0i6wRG7gWMDKsYJVILkguKk9JzjfJSy/WKE3OLS/PS9ZLzczcx gsPymfQOxsO73A8xCnAwKvHwavDfjBBiTSwrrsw9xCjBwawkwvuNGyjEm5JYWZValB9fVJqT WnyI0RTogInMUqLJ+cCYySuJNzQxNzE3NrAwt7Q0MVIS522c/SxcSCA9sSQ1OzW1ILUIpo+J g1OqgTFrgdvSNXuy1qxcUe41KWmVweY9Nq9Ope64yzld4z+zcNjxfVtV5S4lfPKfolYfLdwu 4ZKS22yrZD87be+9O7YaP8WdXtWu+RIlkzJ/Yaj7v4/SrH8FniwOdGeRr/r+I+IiX8eeb7fL txz8OPXj4msV2TLyAnHx77XPSCiohvl+fCz33jfivJESS3FGoqEWc1FxIgCUDV+JYQIAAA== X-MTR: 20000000000000000@CPGS X-CMS-MailID: 20170327133445epcas5p4eef3b88af9e952fb8d0ab00eb4dafbd5 X-Msg-Generator: CA X-Sender-IP: 203.254.230.27 X-Local-Sender: =?UTF-8?B?7JWI65SUG1RpemVuIFBsYXRmb3JtIExhYihTL1fshLzthLAp?= =?UTF-8?B?G+yCvOyEseyghOyekBtTZW5pb3IgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?QW5kaSBTaHl0aRtUaXplbiBQbGF0Zm9ybSBMYWIuG1NhbXN1?= =?UTF-8?B?bmcgRWxlY3Ryb25pY3MbU2VuaW9yIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NUQUYbQzEwVjgxMTE=?= CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-HopCount: 7 X-CMS-RootMailID: 20170327133445epcas5p4eef3b88af9e952fb8d0ab00eb4dafbd5 X-RootMTR: 20170327133445epcas5p4eef3b88af9e952fb8d0ab00eb4dafbd5 References: <CGME20170327133445epcas5p4eef3b88af9e952fb8d0ab00eb4dafbd5@epcas5p4.samsung.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
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;
Signed-off-by: Andi Shyti <andi.shyti@samsung.com> --- drivers/media/rc/ir-spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)