The ntohs() function returns uint16_t, which will always fit within an int (including in excess for the signed bit) on the platform we support. Thus the check for negative values is never going to hit. Change-Id: Ie9d5bcfe5709c50260098f91ff111755ded72921 Warned-by: lgtmpull/1218/head