From: YOSHIFUJI Hideaki Date: Tue, 11 Dec 2007 18:53:26 +0000 (+0900) Subject: [IRDA]: Use htons() where appropriate. X-Git-Tag: MMI-PSA29.97-13-9~37648^2~1086 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6d82de9e576ea84b549b927e6a7775d918a427b5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [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 a86a5d83786b..390a790886eb 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) */