diff options
Diffstat (limited to 'drivers/net/irda/pxaficp_ir.c')
-rw-r--r-- | drivers/net/irda/pxaficp_ir.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/irda/pxaficp_ir.c b/drivers/net/irda/pxaficp_ir.c index 002a442bf73f..858de05bdb7d 100644 --- a/drivers/net/irda/pxaficp_ir.c +++ b/drivers/net/irda/pxaficp_ir.c | |||
@@ -846,8 +846,10 @@ static int pxa_irda_probe(struct platform_device *pdev) | |||
846 | goto err_mem_2; | 846 | goto err_mem_2; |
847 | 847 | ||
848 | dev = alloc_irdadev(sizeof(struct pxa_irda)); | 848 | dev = alloc_irdadev(sizeof(struct pxa_irda)); |
849 | if (!dev) | 849 | if (!dev) { |
850 | err = -ENOMEM; | ||
850 | goto err_mem_3; | 851 | goto err_mem_3; |
852 | } | ||
851 | 853 | ||
852 | SET_NETDEV_DEV(dev, &pdev->dev); | 854 | SET_NETDEV_DEV(dev, &pdev->dev); |
853 | si = netdev_priv(dev); | 855 | si = netdev_priv(dev); |