2020-01-22 16:10:55

by Alain Michaud

[permalink] [raw]
Subject: [PATCH] bluetooth: adding missing const decoration to mgmt_status_table

This change simply adds a missing const decoration to the
mtmt_status_table definition.

Signed-off-by: Alain Michaud <[email protected]>
---

net/bluetooth/mgmt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 0dc610faab70..3c68a366977f 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -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 */
--
2.25.0.341.g760bfbb309-goog


2020-01-22 16:38:21

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [PATCH] bluetooth: adding missing const decoration to mgmt_status_table

Hi Alain,

> This change simply adds a missing const decoration to the
> mtmt_status_table definition.
>
> Signed-off-by: Alain Michaud <[email protected]>
> ---
>
> net/bluetooth/mgmt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

patch has been applied to bluetooth-next tree.

Regards

Marcel