Commit cfb0c9d1 authored by Stefan Richter's avatar Stefan Richter

firewire: remove unnecessary alloc/OOM messages

These are redundant to log messages from the mm core.
Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent d6c8cefc
...@@ -389,10 +389,8 @@ static void queue_bus_reset_event(struct client *client) ...@@ -389,10 +389,8 @@ static void queue_bus_reset_event(struct client *client)
struct bus_reset_event *e; struct bus_reset_event *e;
e = kzalloc(sizeof(*e), GFP_KERNEL); e = kzalloc(sizeof(*e), GFP_KERNEL);
if (e == NULL) { if (e == NULL)
fw_notice(client->device->card, "out of memory when allocating event\n");
return; return;
}
fill_bus_reset_event(&e->reset, client); fill_bus_reset_event(&e->reset, client);
...@@ -693,10 +691,9 @@ static void handle_request(struct fw_card *card, struct fw_request *request, ...@@ -693,10 +691,9 @@ static void handle_request(struct fw_card *card, struct fw_request *request,
r = kmalloc(sizeof(*r), GFP_ATOMIC); r = kmalloc(sizeof(*r), GFP_ATOMIC);
e = kmalloc(sizeof(*e), GFP_ATOMIC); e = kmalloc(sizeof(*e), GFP_ATOMIC);
if (r == NULL || e == NULL) { if (r == NULL || e == NULL)
fw_notice(card, "out of memory when allocating event\n");
goto failed; goto failed;
}
r->card = card; r->card = card;
r->request = request; r->request = request;
r->data = payload; r->data = payload;
...@@ -930,10 +927,9 @@ static void iso_callback(struct fw_iso_context *context, u32 cycle, ...@@ -930,10 +927,9 @@ static void iso_callback(struct fw_iso_context *context, u32 cycle,
struct iso_interrupt_event *e; struct iso_interrupt_event *e;
e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC); e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC);
if (e == NULL) { if (e == NULL)
fw_notice(context->card, "out of memory when allocating event\n");
return; return;
}
e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT; e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT;
e->interrupt.closure = client->iso_closure; e->interrupt.closure = client->iso_closure;
e->interrupt.cycle = cycle; e->interrupt.cycle = cycle;
...@@ -950,10 +946,9 @@ static void iso_mc_callback(struct fw_iso_context *context, ...@@ -950,10 +946,9 @@ static void iso_mc_callback(struct fw_iso_context *context,
struct iso_interrupt_mc_event *e; struct iso_interrupt_mc_event *e;
e = kmalloc(sizeof(*e), GFP_ATOMIC); e = kmalloc(sizeof(*e), GFP_ATOMIC);
if (e == NULL) { if (e == NULL)
fw_notice(context->card, "out of memory when allocating event\n");
return; return;
}
e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL; e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL;
e->interrupt.closure = client->iso_closure; e->interrupt.closure = client->iso_closure;
e->interrupt.completed = fw_iso_buffer_lookup(&client->buffer, e->interrupt.completed = fw_iso_buffer_lookup(&client->buffer,
...@@ -1581,10 +1576,9 @@ void fw_cdev_handle_phy_packet(struct fw_card *card, struct fw_packet *p) ...@@ -1581,10 +1576,9 @@ void fw_cdev_handle_phy_packet(struct fw_card *card, struct fw_packet *p)
list_for_each_entry(client, &card->phy_receiver_list, phy_receiver_link) { list_for_each_entry(client, &card->phy_receiver_list, phy_receiver_link) {
e = kmalloc(sizeof(*e) + 8, GFP_ATOMIC); e = kmalloc(sizeof(*e) + 8, GFP_ATOMIC);
if (e == NULL) { if (e == NULL)
fw_notice(card, "out of memory when allocating event\n");
break; break;
}
e->phy_packet.closure = client->phy_receiver_closure; e->phy_packet.closure = client->phy_receiver_closure;
e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED; e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED;
e->phy_packet.rcode = RCODE_COMPLETE; e->phy_packet.rcode = RCODE_COMPLETE;
......
...@@ -692,10 +692,8 @@ static void create_units(struct fw_device *device) ...@@ -692,10 +692,8 @@ static void create_units(struct fw_device *device)
* match the drivers id_tables against it. * match the drivers id_tables against it.
*/ */
unit = kzalloc(sizeof(*unit), GFP_KERNEL); unit = kzalloc(sizeof(*unit), GFP_KERNEL);
if (unit == NULL) { if (unit == NULL)
fw_err(device->card, "out of memory for unit\n");
continue; continue;
}
unit->directory = ci.p + value - 1; unit->directory = ci.p + value - 1;
unit->device.bus = &fw_bus_type; unit->device.bus = &fw_bus_type;
......
...@@ -368,10 +368,8 @@ static struct fwnet_fragment_info *fwnet_frag_new( ...@@ -368,10 +368,8 @@ static struct fwnet_fragment_info *fwnet_frag_new(
} }
new = kmalloc(sizeof(*new), GFP_ATOMIC); new = kmalloc(sizeof(*new), GFP_ATOMIC);
if (!new) { if (!new)
dev_err(&pd->skb->dev->dev, "out of memory\n");
return NULL; return NULL;
}
new->offset = offset; new->offset = offset;
new->len = len; new->len = len;
...@@ -414,8 +412,6 @@ static struct fwnet_partial_datagram *fwnet_pd_new(struct net_device *net, ...@@ -414,8 +412,6 @@ static struct fwnet_partial_datagram *fwnet_pd_new(struct net_device *net,
fail_w_new: fail_w_new:
kfree(new); kfree(new);
fail: fail:
dev_err(&net->dev, "out of memory\n");
return NULL; return NULL;
} }
...@@ -692,7 +688,6 @@ static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len, ...@@ -692,7 +688,6 @@ static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len,
skb = dev_alloc_skb(len + LL_RESERVED_SPACE(net)); skb = dev_alloc_skb(len + LL_RESERVED_SPACE(net));
if (unlikely(!skb)) { if (unlikely(!skb)) {
dev_err(&net->dev, "out of memory\n");
net->stats.rx_dropped++; net->stats.rx_dropped++;
return -ENOMEM; return -ENOMEM;
......
...@@ -3711,9 +3711,6 @@ static int pci_probe(struct pci_dev *dev, ...@@ -3711,9 +3711,6 @@ static int pci_probe(struct pci_dev *dev,
kfree(ohci); kfree(ohci);
pmac_ohci_off(dev); pmac_ohci_off(dev);
fail: fail:
if (err == -ENOMEM)
dev_err(&dev->dev, "out of memory\n");
return err; return err;
} }
......
...@@ -1475,10 +1475,8 @@ static int sbp2_scsi_queuecommand(struct Scsi_Host *shost, ...@@ -1475,10 +1475,8 @@ static int sbp2_scsi_queuecommand(struct Scsi_Host *shost,
} }
orb = kzalloc(sizeof(*orb), GFP_ATOMIC); orb = kzalloc(sizeof(*orb), GFP_ATOMIC);
if (orb == NULL) { if (orb == NULL)
dev_notice(lu_dev(lu), "failed to alloc ORB\n");
return SCSI_MLQUEUE_HOST_BUSY; return SCSI_MLQUEUE_HOST_BUSY;
}
/* Initialize rcode to something not RCODE_COMPLETE. */ /* Initialize rcode to something not RCODE_COMPLETE. */
orb->base.rcode = -1; orb->base.rcode = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment