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

Commit 33a32243 authored by Georgios Emmanouil's avatar Georgios Emmanouil Committed by Greg Kroah-Hartman
Browse files

Staging:wilc1000:host_interface: Integrated two 'if' statements to a single 'if' statement



Removed unnecessary 'if' statement and integrated the condition to the
previous 'if' statement.

Signed-off-by: default avatarGeorgios Emmanouil <geo.emmnl@gmail.com>
Reviewed-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2631fffe
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -1355,14 +1355,12 @@ static s32 Handle_RcvdGnrlAsyncInfo(struct wilc_vif *vif,
					} else {
						strConnectInfo.status = pstrConnectRespInfo->status;

						if (strConnectInfo.status == SUCCESSFUL_STATUSCODE) {
							if (pstrConnectRespInfo->ies) {
						if (strConnectInfo.status == SUCCESSFUL_STATUSCODE && pstrConnectRespInfo->ies) {
							strConnectInfo.resp_ies_len = pstrConnectRespInfo->ies_len;
							strConnectInfo.resp_ies = kmalloc(pstrConnectRespInfo->ies_len, GFP_KERNEL);
							memcpy(strConnectInfo.resp_ies, pstrConnectRespInfo->ies,
							       pstrConnectRespInfo->ies_len);
						}
						}

						if (pstrConnectRespInfo) {
							kfree(pstrConnectRespInfo->ies);