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

Commit 24c6c29d authored by Janani Ravichandran's avatar Janani Ravichandran Committed by Greg Kroah-Hartman
Browse files

staging: wilc1000: Simplify code by eliminating else block



Remove else block here as it is not useful after the return statement in the corresponding if block. This simplifies code. This issue was identified by checkpatch.

Signed-off-by: default avatarJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 04b2172a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -3351,10 +3351,9 @@ static s32 host_int_get_assoc_res_info(struct wilc_vif *vif,
		*pu32RcvdAssocRespInfoLen = 0;
		PRINT_ER("Failed to send association response config packet\n");
		return -EINVAL;
	} else {
		*pu32RcvdAssocRespInfoLen = wid.size;
	}
	
	*pu32RcvdAssocRespInfoLen = wid.size;
	return result;
}