UINTN is unsigned integer, so it's pointless to compare it with zero.
Cc: Bi Dandan <dandan.bi@intel.com>
Cc: Zhang Lubo <lubo.zhang@intel.com>
Cc: Ye Ting <ting.ye@intel.com>
Cc: Fu Siyuan <siyuan.fu@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com>
Reviewed-by: Zhang Lubo <lubo.zhang@intel.com>
\r
Status = AsciiStrDecimalToUintnS (Url + Parser->FieldData[HTTP_URI_FIELD_PORT].Offset, (CHAR8 **) NULL, &Data);\r
\r
- if (Data > HTTP_URI_PORT_MAX_NUM || Data < HTTP_URI_PORT_MIN_NUM) {\r
+ if (Data > HTTP_URI_PORT_MAX_NUM) {\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
#define HTTP_URI_FIELD_PORT 7\r
#define HTTP_URI_FIELD_MAX 8\r
\r
-#define HTTP_URI_PORT_MIN_NUM 0\r
#define HTTP_URI_PORT_MAX_NUM 65535\r
\r
//\r