aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/can/sja1000/ems_pci.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-02-03 17:28:09 +0000
committerDavid S. Miller <davem@davemloft.net>2013-02-04 13:22:33 -0500
commit09da6c5f60ad2e2018366e47192a9ddbccfb3ac5 (patch)
treee257e02cf65564724fe6b40dc4406ad92f9bd850 /drivers/net/can/sja1000/ems_pci.c
parentcaif: Remove unnecessary alloc/OOM messages (diff)
downloadlinux-dev-09da6c5f60ad2e2018366e47192a9ddbccfb3ac5.tar.xz
linux-dev-09da6c5f60ad2e2018366e47192a9ddbccfb3ac5.zip
can: Remove unnecessary alloc/OOM messages
alloc failures already get standardized OOM messages and a dump_stack. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/can/sja1000/ems_pci.c')
-rw-r--r--drivers/net/can/sja1000/ems_pci.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/can/sja1000/ems_pci.c b/drivers/net/can/sja1000/ems_pci.c
index 036a326836b2..36d298da2af6 100644
--- a/drivers/net/can/sja1000/ems_pci.c
+++ b/drivers/net/can/sja1000/ems_pci.c
@@ -238,7 +238,6 @@ static int ems_pci_add_card(struct pci_dev *pdev,
/* Allocating card structures to hold addresses, ... */
card = kzalloc(sizeof(struct ems_pci_card), GFP_KERNEL);
if (card == NULL) {
- dev_err(&pdev->dev, "Unable to allocate memory\n");
pci_disable_device(pdev);
return -ENOMEM;
}