[IRDA]: Use htons() where appropriate.
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Tue, 11 Dec 2007 18:53:26 +0000 (03:53 +0900)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:58:03 +0000 (14:58 -0800)
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/iriap.c

index a86a5d8..390a790 100644 (file)
@@ -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) */