cosmetic: vty for timers: remove obsolete range check

The VTY parsing already ensures the parameter range being 1..65535, no need to
check the range again.

Change-Id: I1cffa5b01cd5c589f1e42998e32135f1da8c960b
This commit is contained in:
Neels Hofmeyr 2017-07-24 13:45:12 +02:00 committed by Neels Hofmeyr
parent 3c14803b8d
commit b0d623a984
1 changed files with 0 additions and 6 deletions

View File

@ -1550,12 +1550,6 @@ DEFUN(cfg_net_pag_any_tch,
struct gsm_network *gsmnet = gsmnet_from_vty(vty); \
int value = atoi(argv[0]); \
\
if (value < 1 || value > 65535) { \
vty_out(vty, "Timer value %s out of range.%s", \
argv[0], VTY_NEWLINE); \
return CMD_WARNING; \
} \
\
gsmnet->T##number = value; \
return CMD_SUCCESS; \
}