diff mbox series

Bluetooth: Fix debug statement with double endian conversion

Message ID 20200619075000.138897-1-marcel@holtmann.org
State New
Headers show
Series Bluetooth: Fix debug statement with double endian conversion | expand

Commit Message

Marcel Holtmann June 19, 2020, 7:50 a.m. UTC
The current_flags field is already in CPU endian and so no need to
convert it again from little-endian.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
---
 net/bluetooth/mgmt.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index 2a732cab1dc9..a27620ba7f3d 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -3950,8 +3950,7 @@  static int set_device_flags(struct sock *sk, struct hci_dev *hdev, void *data,
 	u32 current_flags = __le32_to_cpu(cp->current_flags);
 
 	bt_dev_dbg(hdev, "Set device flags %pMR (type 0x%x) = 0x%x",
-		   &cp->addr.bdaddr, cp->addr.type,
-		   __le32_to_cpu(current_flags));
+		   &cp->addr.bdaddr, cp->addr.type, current_flags);
 
 	if ((supported_flags | current_flags) != supported_flags) {
 		bt_dev_warn(hdev, "Bad flag given (0x%x) vs supported (0x%0x)",