summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2018-03-20 23:18:29 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-20 23:18:29 -0700
commit01b4773f290386423e6fa80aef43265d1b9140b5 (patch)
treee4dd78f8420207279f65ea8cf686a4c17303f123
parentcac60109a99cbc0dac91fa1866799e8ce6486b3d (diff)
parentce38d58009a49392934ee9fbc97c2d152a5bfaaf (diff)
Merge "soc: qcom: ipc_router_mhi_xprt: Initialize variable at start"
-rw-r--r--drivers/soc/qcom/ipc_router_mhi_xprt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/soc/qcom/ipc_router_mhi_xprt.c b/drivers/soc/qcom/ipc_router_mhi_xprt.c
index adf4078818a5..104053406ea9 100644
--- a/drivers/soc/qcom/ipc_router_mhi_xprt.c
+++ b/drivers/soc/qcom/ipc_router_mhi_xprt.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -424,7 +424,7 @@ static int ipc_router_mhi_write(void *data,
struct rr_packet *pkt = (struct rr_packet *)data;
struct sk_buff *ipc_rtr_pkt;
struct rr_packet *cloned_pkt;
- int rc;
+ int rc = 0;
struct ipc_router_mhi_xprt *mhi_xprtp =
container_of(xprt, struct ipc_router_mhi_xprt, xprt);
@@ -948,7 +948,7 @@ error:
*/
static int ipc_router_mhi_xprt_probe(struct platform_device *pdev)
{
- int rc;
+ int rc = -ENODEV;
struct ipc_router_mhi_xprt_config mhi_xprt_config;
if (pdev && pdev->dev.of_node) {