From: Denys Vlasenko Date: Sun, 19 Jul 2009 02:35:16 +0000 (+0200) Subject: udhcpc: small simplification X-Git-Tag: 1_15_0~53 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4abfc2642dcff669798364835f53c804b3d7bcef;p=oweals%2Fbusybox.git udhcpc: small simplification function old new delta udhcpc_main 2401 2398 -3 Signed-off-by: Denys Vlasenko --- diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 636061818..fbb645749 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c @@ -628,10 +628,7 @@ int udhcpc_main(int argc UNUSED_PARAM, char **argv) inet_ntoa(temp_addr), (unsigned)lease_seconds); } requested_ip = packet.yiaddr; - udhcp_run_script(&packet, - ((state >= RENEWING && state <= RENEW_REQUESTED) - ? "renew" : "bound") - ); + udhcp_run_script(&packet, state == REQUESTING ? "bound" : "renew"); state = BOUND; change_listen_mode(LISTEN_NONE);