]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
be2net: remove a BUG_ON in be_cmds.c
authorAjit Khaparde <ajitk@serverengines.com>
Fri, 3 Sep 2010 06:24:13 +0000 (06:24 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 3 Sep 2010 16:52:47 +0000 (09:52 -0700)
Async notifications other than link status are possible in certain
configurations. Remove the BUG_ON in the mcc completion processing path.

Signed-off-by: Ajit Khaparde <ajitk@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/benet/be_cmds.c

index 78f32fe68c0e342948d7d0c144282b04be30933a..34abcc9403d6b76428416412904b4c06ff8d593b 100644 (file)
@@ -140,10 +140,8 @@ int be_process_mcc(struct be_adapter *adapter, int *status)
        while ((compl = be_mcc_compl_get(adapter))) {
                if (compl->flags & CQE_FLAGS_ASYNC_MASK) {
                        /* Interpret flags as an async trailer */
-                       BUG_ON(!is_link_state_evt(compl->flags));
-
-                       /* Interpret compl as a async link evt */
-                       be_async_link_state_process(adapter,
+                       if (is_link_state_evt(compl->flags))
+                               be_async_link_state_process(adapter,
                                (struct be_async_event_link_state *) compl);
                } else if (compl->flags & CQE_FLAGS_COMPLETED_MASK) {
                                *status = be_mcc_compl_process(adapter, compl);