pgpool2.git / summary / log / commit / refs

commit    80e577e69af75e76e2ea5237f1f96bf125b63266
Author:   Yugo Nagata <nagata@sraoss.co.jp>
Date:     Fri Nov 01 12:46:06 2013 +0000

    Remove unnecessary comparison with no effect


src/watchdog/wd_packet.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/watchdog/wd_packet.c b/src/watchdog/wd_packet.c index 24d191532..58daa8d08 100644 --- a/src/watchdog/wd_packet.c +++ b/src/watchdog/wd_packet.c @@ -462,8 +462,7 @@ wd_recv_packet(int sock, WdPacket * recv_pack) if (read_size == len) { - if ((ntohl(buf.packet_no) >= WD_INVALID) && - (ntohl(buf.packet_no) <= WD_READY )) + if (ntohl(buf.packet_no) <= WD_READY) { ntoh_wd_packet(recv_pack,&buf); } [parent: 7795327cbdda]