From: YOSHIFUJI Hideaki Date: Tue, 11 Dec 2007 18:53:26 +0000 (+0900) Subject: [IRDA]: Use htons() where appropriate. X-Git-Tag: v2.6.25-rc1~1162^2~1086 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d82de9e576ea84b549b927e6a7775d918a427b5;p=linux-2.6 [IRDA]: Use htons() where appropriate. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/irda/iriap.c b/net/irda/iriap.c index a86a5d8378..390a790886 100644 --- a/net/irda/iriap.c +++ b/net/irda/iriap.c @@ -579,7 +579,7 @@ static void iriap_getvaluebyclass_response(struct iriap_cb *self, fp[n++] = ret_code; /* Insert list length (MSB first) */ - tmp_be16 = __constant_htons(0x0001); + tmp_be16 = htons(0x0001); memcpy(fp+n, &tmp_be16, 2); n += 2; /* Insert object identifier ( MSB first) */