Bluetooth: trivial: Use __constant for constants
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>
Wed, 14 Nov 2012 15:39:32 +0000 (17:39 +0200)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Mon, 19 Nov 2012 21:30:56 +0000 (19:30 -0200)
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/l2cap_core.c

index fc92fe3411151108b0ca62abc69c1d734ec6f5d3..3ed93938370a4893d30613f376baafb9fec71da3 100644 (file)
@@ -4528,12 +4528,12 @@ static void l2cap_do_create(struct l2cap_chan *chan, int result,
                /* Incoming channel on AMP */
                if (result == L2CAP_CR_SUCCESS) {
                        /* Send successful response */
-                       rsp.result = cpu_to_le16(L2CAP_CR_SUCCESS);
-                       rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO);
+                       rsp.result = __constant_cpu_to_le16(L2CAP_CR_SUCCESS);
+                       rsp.status = __constant_cpu_to_le16(L2CAP_CS_NO_INFO);
                } else {
                        /* Send negative response */
-                       rsp.result = cpu_to_le16(L2CAP_CR_NO_MEM);
-                       rsp.status = cpu_to_le16(L2CAP_CS_NO_INFO);
+                       rsp.result = __constant_cpu_to_le16(L2CAP_CR_NO_MEM);
+                       rsp.status = __constant_cpu_to_le16(L2CAP_CS_NO_INFO);
                }
 
                l2cap_send_cmd(chan->conn, chan->ident, L2CAP_CREATE_CHAN_RSP,