Bluetooth: adding missing const decoration to mgmt_status_table
authorAlain Michaud <alainm@chromium.org>
Wed, 22 Jan 2020 16:09:16 +0000 (16:09 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Wed, 22 Jan 2020 16:37:25 +0000 (17:37 +0100)
This change simply adds a missing const decoration to the
mtmt_status_table definition.

Signed-off-by: Alain Michaud <alainm@chromium.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/mgmt.c

index 0dc610faab70027b084cc6d7bab0f569dbd3588e..3c68a366977f3cf84b44a793704a4b97cbf96e88 100644 (file)
@@ -176,7 +176,7 @@ static const u16 mgmt_untrusted_events[] = {
                 "\x00\x00\x00\x00\x00\x00\x00\x00"
 
 /* HCI to MGMT error code conversion table */
-static u8 mgmt_status_table[] = {
+static const u8 mgmt_status_table[] = {
        MGMT_STATUS_SUCCESS,
        MGMT_STATUS_UNKNOWN_COMMAND,    /* Unknown Command */
        MGMT_STATUS_NOT_CONNECTED,      /* No Connection */