From 892cefc3d1ddef0a162239c22e48b21dde8f68e1 Mon Sep 17 00:00:00 2001 From: Ajay Agarwal Date: Thu, 14 Mar 2019 20:43:00 +0530 Subject: [PATCH] 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: Ajay Agarwal --- samples/qmi/qmi_sample_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/qmi/qmi_sample_client.c b/samples/qmi/qmi_sample_client.c index 0898a2186c72..e3ac56f0a2f7 100644 --- a/samples/qmi/qmi_sample_client.c +++ b/samples/qmi/qmi_sample_client.c @@ -1,7 +1,7 @@ /* * 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;