]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[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 a86a5d83786b349bb92e773ad8d70c0d6340fe49..390a790886ebbd3e6006dd3f0638b0d2c0fba46d 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) */