diff --git a/proto/bgp/config.Y b/proto/bgp/config.Y
index 7279560b..fbfade8f 100644
--- a/proto/bgp/config.Y
+++ b/proto/bgp/config.Y
@@ -78,7 +78,7 @@ bgp_proto_start: proto_start BGP {
bgp_loc_opts:
/* empty */
- | bgp_loc_opts PORT expr { BGP_CFG->local_port = $3; if (($3<1) || ($3>65535)) cf_error("Invalid port number"); }
+ | bgp_loc_opts PORT expr { BGP_CFG->local_port = $3; if ($3>65535) cf_error("Invalid port number"); }
| bgp_loc_opts AS expr { BGP_CFG->local_as = $3; }
;