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

Commit bcf12c2e authored by Sandeep Singh's avatar Sandeep Singh
Browse files

icnss: Update return value of athdiag command



Return value of athdiag command only 0 is considered
to correct.So, Updating the return value .

Change-Id: I20e5012f58e762b72f21b92b96bc8f39f755d389
Signed-off-by: default avatarSandeep Singh <sandsing@codeaurora.org>
parent d79aa3e4
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/* Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017-2019, 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
@@ -750,6 +750,8 @@ int wlfw_athdiag_read_send_sync_msg(struct icnss_priv *priv,
			resp->resp.result, resp->resp.error);
		ret = -resp->resp.result;
		goto out;
	} else {
		ret = 0;
	}

	if (!resp->data_valid || resp->data_len < data_len) {