aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2013-03-24 12:32:00 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2013-04-28 17:36:44 -0400
commitcfb0c9d1ffbf930a4a852f178b161c522b21b0ab (patch)
tree0cc4283c327d75fd571b34d958188a9106d79a87 /drivers/firewire
parentd6c8cefc69a0b1e75b369613f902141f2c621914 (diff)
firewire: remove unnecessary alloc/OOM messages
These are redundant to log messages from the mm core. Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire')
-rw-r--r--drivers/firewire/core-cdev.c24
-rw-r--r--drivers/firewire/core-device.c4
-rw-r--r--drivers/firewire/net.c7
-rw-r--r--drivers/firewire/ohci.c3
-rw-r--r--drivers/firewire/sbp2.c4
5 files changed, 12 insertions, 30 deletions
diff --git a/drivers/firewire/core-cdev.c b/drivers/firewire/core-cdev.c
index 13573e8f518f..7ef316fdc4d9 100644
--- a/drivers/firewire/core-cdev.c
+++ b/drivers/firewire/core-cdev.c
@@ -389,10 +389,8 @@ static void queue_bus_reset_event(struct client *client)
389 struct bus_reset_event *e; 389 struct bus_reset_event *e;
390 390
391 e = kzalloc(sizeof(*e), GFP_KERNEL); 391 e = kzalloc(sizeof(*e), GFP_KERNEL);
392 if (e == NULL) { 392 if (e == NULL)
393 fw_notice(client->device->card, "out of memory when allocating event\n");
394 return; 393 return;
395 }
396 394
397 fill_bus_reset_event(&e->reset, client); 395 fill_bus_reset_event(&e->reset, client);
398 396
@@ -693,10 +691,9 @@ static void handle_request(struct fw_card *card, struct fw_request *request,
693 691
694 r = kmalloc(sizeof(*r), GFP_ATOMIC); 692 r = kmalloc(sizeof(*r), GFP_ATOMIC);
695 e = kmalloc(sizeof(*e), GFP_ATOMIC); 693 e = kmalloc(sizeof(*e), GFP_ATOMIC);
696 if (r == NULL || e == NULL) { 694 if (r == NULL || e == NULL)
697 fw_notice(card, "out of memory when allocating event\n");
698 goto failed; 695 goto failed;
699 } 696
700 r->card = card; 697 r->card = card;
701 r->request = request; 698 r->request = request;
702 r->data = payload; 699 r->data = payload;
@@ -930,10 +927,9 @@ static void iso_callback(struct fw_iso_context *context, u32 cycle,
930 struct iso_interrupt_event *e; 927 struct iso_interrupt_event *e;
931 928
932 e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC); 929 e = kmalloc(sizeof(*e) + header_length, GFP_ATOMIC);
933 if (e == NULL) { 930 if (e == NULL)
934 fw_notice(context->card, "out of memory when allocating event\n");
935 return; 931 return;
936 } 932
937 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT; 933 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT;
938 e->interrupt.closure = client->iso_closure; 934 e->interrupt.closure = client->iso_closure;
939 e->interrupt.cycle = cycle; 935 e->interrupt.cycle = cycle;
@@ -950,10 +946,9 @@ static void iso_mc_callback(struct fw_iso_context *context,
950 struct iso_interrupt_mc_event *e; 946 struct iso_interrupt_mc_event *e;
951 947
952 e = kmalloc(sizeof(*e), GFP_ATOMIC); 948 e = kmalloc(sizeof(*e), GFP_ATOMIC);
953 if (e == NULL) { 949 if (e == NULL)
954 fw_notice(context->card, "out of memory when allocating event\n");
955 return; 950 return;
956 } 951
957 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL; 952 e->interrupt.type = FW_CDEV_EVENT_ISO_INTERRUPT_MULTICHANNEL;
958 e->interrupt.closure = client->iso_closure; 953 e->interrupt.closure = client->iso_closure;
959 e->interrupt.completed = fw_iso_buffer_lookup(&client->buffer, 954 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 1576
1582 list_for_each_entry(client, &card->phy_receiver_list, phy_receiver_link) { 1577 list_for_each_entry(client, &card->phy_receiver_list, phy_receiver_link) {
1583 e = kmalloc(sizeof(*e) + 8, GFP_ATOMIC); 1578 e = kmalloc(sizeof(*e) + 8, GFP_ATOMIC);
1584 if (e == NULL) { 1579 if (e == NULL)
1585 fw_notice(card, "out of memory when allocating event\n");
1586 break; 1580 break;
1587 } 1581
1588 e->phy_packet.closure = client->phy_receiver_closure; 1582 e->phy_packet.closure = client->phy_receiver_closure;
1589 e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED; 1583 e->phy_packet.type = FW_CDEV_EVENT_PHY_PACKET_RECEIVED;
1590 e->phy_packet.rcode = RCODE_COMPLETE; 1584 e->phy_packet.rcode = RCODE_COMPLETE;
diff --git a/drivers/firewire/core-device.c b/drivers/firewire/core-device.c
index 03ce7d980c6a..664a6ff0a823 100644
--- a/drivers/firewire/core-device.c
+++ b/drivers/firewire/core-device.c
@@ -692,10 +692,8 @@ static void create_units(struct fw_device *device)
692 * match the drivers id_tables against it. 692 * match the drivers id_tables against it.
693 */ 693 */
694 unit = kzalloc(sizeof(*unit), GFP_KERNEL); 694 unit = kzalloc(sizeof(*unit), GFP_KERNEL);
695 if (unit == NULL) { 695 if (unit == NULL)
696 fw_err(device->card, "out of memory for unit\n");
697 continue; 696 continue;
698 }
699 697
700 unit->directory = ci.p + value - 1; 698 unit->directory = ci.p + value - 1;
701 unit->device.bus = &fw_bus_type; 699 unit->device.bus = &fw_bus_type;
diff --git a/drivers/firewire/net.c b/drivers/firewire/net.c
index 2b27bff2591a..75c1133e437c 100644
--- a/drivers/firewire/net.c
+++ b/drivers/firewire/net.c
@@ -368,10 +368,8 @@ static struct fwnet_fragment_info *fwnet_frag_new(
368 } 368 }
369 369
370 new = kmalloc(sizeof(*new), GFP_ATOMIC); 370 new = kmalloc(sizeof(*new), GFP_ATOMIC);
371 if (!new) { 371 if (!new)
372 dev_err(&pd->skb->dev->dev, "out of memory\n");
373 return NULL; 372 return NULL;
374 }
375 373
376 new->offset = offset; 374 new->offset = offset;
377 new->len = len; 375 new->len = len;
@@ -414,8 +412,6 @@ fail_w_fi:
414fail_w_new: 412fail_w_new:
415 kfree(new); 413 kfree(new);
416fail: 414fail:
417 dev_err(&net->dev, "out of memory\n");
418
419 return NULL; 415 return NULL;
420} 416}
421 417
@@ -692,7 +688,6 @@ static int fwnet_incoming_packet(struct fwnet_device *dev, __be32 *buf, int len,
692 688
693 skb = dev_alloc_skb(len + LL_RESERVED_SPACE(net)); 689 skb = dev_alloc_skb(len + LL_RESERVED_SPACE(net));
694 if (unlikely(!skb)) { 690 if (unlikely(!skb)) {
695 dev_err(&net->dev, "out of memory\n");
696 net->stats.rx_dropped++; 691 net->stats.rx_dropped++;
697 692
698 return -ENOMEM; 693 return -ENOMEM;
diff --git a/drivers/firewire/ohci.c b/drivers/firewire/ohci.c
index 4a55b519b773..d9be53c1d806 100644
--- a/drivers/firewire/ohci.c
+++ b/drivers/firewire/ohci.c
@@ -3711,9 +3711,6 @@ static int pci_probe(struct pci_dev *dev,
3711 kfree(ohci); 3711 kfree(ohci);
3712 pmac_ohci_off(dev); 3712 pmac_ohci_off(dev);
3713 fail: 3713 fail:
3714 if (err == -ENOMEM)
3715 dev_err(&dev->dev, "out of memory\n");
3716
3717 return err; 3714 return err;
3718} 3715}
3719 3716
diff --git a/drivers/firewire/sbp2.c b/drivers/firewire/sbp2.c
index cbf969abe311..47674b913843 100644
--- a/drivers/firewire/sbp2.c
+++ b/drivers/firewire/sbp2.c
@@ -1475,10 +1475,8 @@ static int sbp2_scsi_queuecommand(struct Scsi_Host *shost,
1475 } 1475 }
1476 1476
1477 orb = kzalloc(sizeof(*orb), GFP_ATOMIC); 1477 orb = kzalloc(sizeof(*orb), GFP_ATOMIC);
1478 if (orb == NULL) { 1478 if (orb == NULL)
1479 dev_notice(lu_dev(lu), "failed to alloc ORB\n");
1480 return SCSI_MLQUEUE_HOST_BUSY; 1479 return SCSI_MLQUEUE_HOST_BUSY;
1481 }
1482 1480
1483 /* Initialize rcode to something not RCODE_COMPLETE. */ 1481 /* Initialize rcode to something not RCODE_COMPLETE. */
1484 orb->base.rcode = -1; 1482 orb->base.rcode = -1;