goto end;
}
- if (bt_notification_get_type(notification) !=
- BT_NOTIFICATION_TYPE_DISCARDED_EVENTS) {
+ if (bt_notification_get_type(notification) != type) {
BT_LOGW("Invalid parameter: notification has not the expected type: "
"addr%p, expected-type=%s, notif-type=%s",
notification, bt_notification_type_string(type),
goto end;
}
- if (bt_notification_get_type(notification) !=
- BT_NOTIFICATION_TYPE_DISCARDED_EVENTS) {
+ if (bt_notification_get_type(notification) != type) {
BT_LOGW("Invalid parameter: notification has not the expected type: "
"addr%p, expected-type=%s, notif-type=%s",
notification, bt_notification_type_string(type),
goto end;
}
- if (bt_notification_get_type(notification) !=
- BT_NOTIFICATION_TYPE_DISCARDED_EVENTS) {
+ if (bt_notification_get_type(notification) != type) {
BT_LOGW("Invalid parameter: notification has not the expected type: "
"addr%p, expected-type=%s, notif-type=%s",
notification, bt_notification_type_string(type),
goto end;
}
- if (bt_notification_get_type(notification) !=
- BT_NOTIFICATION_TYPE_DISCARDED_EVENTS) {
+ if (bt_notification_get_type(notification) != type) {
BT_LOGW("Invalid parameter: notification has not the expected type: "
"addr%p, expected-type=%s, notif-type=%s",
notification, bt_notification_type_string(type),