Skip to content

Commit 3a07c25

Browse files
jhedbergkartben
authored andcommitted
Bluetooth: HCI: Rename BT_BUF_TYPE_INVALID to BT_BUF_TYPE_NONE
The new name is slightly clearer, since strictly speaking any value not part of the enum is invalid. Signed-off-by: Johan Hedberg <[email protected]>
1 parent dcc1d38 commit 3a07c25

File tree

1 file changed

+3
-3
lines changed
  • include/zephyr/bluetooth

1 file changed

+3
-3
lines changed

include/zephyr/bluetooth/buf.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ extern "C" {
3636

3737
/** Possible types of buffers passed around the Bluetooth stack in a form of bitmask. */
3838
enum bt_buf_type {
39-
/** Invalid value, used for error checking */
40-
BT_BUF_TYPE_INVALID = 0,
39+
/** Unknown/invalid packet type, used for error checking */
40+
BT_BUF_TYPE_NONE = 0,
4141
/** HCI command */
4242
BT_BUF_CMD = BIT(0),
4343
/** HCI event */
@@ -102,7 +102,7 @@ static inline enum bt_buf_type bt_buf_type_from_h4(uint8_t h4_type, enum bt_buf_
102102
case BT_HCI_H4_ISO:
103103
return dir == BT_BUF_OUT ? BT_BUF_ISO_OUT : BT_BUF_ISO_IN;
104104
default:
105-
return BT_BUF_TYPE_INVALID;
105+
return BT_BUF_TYPE_NONE;
106106
}
107107
}
108108

0 commit comments

Comments
 (0)