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

Commit 323f30b3 authored by Ajit Khaparde's avatar Ajit Khaparde Committed by David S. Miller
Browse files

be2net: remove a BUG_ON in be_cmds.c



Async notifications other than link status are possible in certain
configurations. Remove the BUG_ON in the mcc completion processing path.

Signed-off-by: default avatarAjit Khaparde <ajitk@serverengines.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d053de91
Loading
Loading
Loading
Loading
+2 −4
Original line number Original line Diff line number Diff line
@@ -140,9 +140,7 @@ int be_process_mcc(struct be_adapter *adapter, int *status)
	while ((compl = be_mcc_compl_get(adapter))) {
	while ((compl = be_mcc_compl_get(adapter))) {
		if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
		if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
			/* Interpret flags as an async trailer */
			/* Interpret flags as an async trailer */
			BUG_ON(!is_link_state_evt(compl->flags));
			if (is_link_state_evt(compl->flags))

			/* Interpret compl as a async link evt */
				be_async_link_state_process(adapter,
				be_async_link_state_process(adapter,
				(struct be_async_event_link_state *) compl);
				(struct be_async_event_link_state *) compl);
		} else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) {
		} else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) {