sockets: remove unused variable

Signed-off-by: Jeff Squyres <jsquyres@cisco.com>

@jithinjosepkl please confirm