udhcpd: remove redundant code in send_offer()
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 20 Mar 2010 02:49:27 +0000 (03:49 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 20 Mar 2010 02:49:27 +0000 (03:49 +0100)
commita953987e778e1a89d9371df99b243e7b57b22a07
tree011bae27383dcc3ccf07106e754d40e6db742bbc
parent8a7c166ab9ad35eef8c90d6b0b3a25b8a9fbacd2
udhcpd: remove redundant code in send_offer()

static_lease_nip and lease pointer are canculated in the caller,
no need to calculate them again. lease_time_sec calculation
is also redundant: it is assigned to later, w/o being used
in between.

function                                             old     new   delta
udhcpd_main                                         1956    1925     -31

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/udhcp/dhcpd.c