diff --git a/monitor/analyze.c b/monitor/analyze.c
index da0e851..4dc2891 100644
--- a/monitor/analyze.c
+++ b/monitor/analyze.c
struct hci_dev *dev;
dev = new0(struct hci_dev, 1);
- if (!dev) {
- fprintf(stderr, "Failed to allocate new device entry\n");
- return NULL;
- }
dev->index = index;
dev->manufacturer = 0xffff;
fprintf(stderr, "Creating new device for unknown index\n");
dev = dev_alloc(index);
- if (!dev)
- return NULL;
queue_push_tail(dev_list, dev);
}
struct hci_dev *dev;
dev = dev_alloc(index);
- if (!dev)
- return;
dev->type = ni->type;
memcpy(dev->bdaddr, ni->bdaddr, 6);
}
dev_list = queue_new();
- if (!dev_list) {
- fprintf(stderr, "Failed to allocate device list\n");
- goto done;
- }
while (1) {
unsigned char buf[BTSNOOP_MAX_PACKET_SIZE];