udhcpc: small simplification

function                                             old     new   delta
udhcpc_main                                         2401    2398      -3

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2009-07-19 04:35:16 +02:00
parent 753a3ce73e
commit 4abfc2642d

View File

@ -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);