]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - net/sctp/sm_sideeffect.c
[IPV4]: rt_cache_stat can be statically defined
[karo-tx-linux.git] / net / sctp / sm_sideeffect.c
index 2d7d8a5db2ac5c8c69c793ce1f368e9fb5a756e7..b8b38aba92b3aa4496e5f2e668a1ba6bfe70c6ab 100644 (file)
@@ -1250,8 +1250,7 @@ static int sctp_cmd_interpreter(sctp_event_t event_type,
                case SCTP_CMD_TIMER_START:
                        timer = &asoc->timers[cmd->obj.to];
                        timeout = asoc->timeouts[cmd->obj.to];
-                       if (!timeout)
-                               BUG();
+                       BUG_ON(!timeout);
 
                        timer->expires = jiffies + timeout;
                        sctp_association_hold(asoc);