Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 892cefc3 authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

samples: qmi: Fix Clang compile error



Use extra braces when initializing instance of structure
test_ping_req_msg_v01 in ping_write function.

Change-Id: I4ea0fd6adfad10be2f56d0c84ba47042088ce9d5
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent c2719049
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Sample in-kernel QMI client driver
 *
 * Copyright (c) 2013-2014, 2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2013-2014, 2017, 2019, The Linux Foundation. All rights reserved.
 * Copyright (C) 2017 Linaro Ltd.
 *
 * This software is licensed under the terms of the GNU General Public
@@ -311,7 +311,7 @@ static ssize_t ping_write(struct file *file, const char __user *user_buf,
			  size_t count, loff_t *ppos)
{
	struct qmi_handle *qmi = file->private_data;
	struct test_ping_req_msg_v01 req = {0};
	struct test_ping_req_msg_v01 req = { {0} };
	struct qmi_txn txn;
	int ret;