We are using a enum to drive a switch statement and we have
a default case statement that can never be entered because
we know all the enum states have been covered. Remove it
from the code as that it cannot happen.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
long spf_backoff_schedule(struct spf_backoff *backoff)
{
- long rv;
+ long rv = 0;
struct timeval now;
gettimeofday(&now, NULL);
else
rv = backoff->long_delay;
break;
- default:
- zlog_warn("SPF Back-off(%s) in unknown state", backoff->name);
- rv = backoff->init_delay;
}
backoff_debug(