diff options
Diffstat (limited to 'drivers/net/irda')
-rw-r--r-- | drivers/net/irda/irtty-sir.c | 4 | ||||
-rw-r--r-- | drivers/net/irda/mcs7780.c | 4 | ||||
-rw-r--r-- | drivers/net/irda/pxaficp_ir.c | 4 | ||||
-rw-r--r-- | drivers/net/irda/sa1100_ir.c | 4 | ||||
-rw-r--r-- | drivers/net/irda/sh_irda.c | 4 | ||||
-rw-r--r-- | drivers/net/irda/sh_sir.c | 5 |
6 files changed, 17 insertions, 8 deletions
diff --git a/drivers/net/irda/irtty-sir.c b/drivers/net/irda/irtty-sir.c index 30087ca23a0f..6e4d4b62c9a8 100644 --- a/drivers/net/irda/irtty-sir.c +++ b/drivers/net/irda/irtty-sir.c | |||
@@ -459,8 +459,10 @@ static int irtty_open(struct tty_struct *tty) | |||
459 | 459 | ||
460 | /* allocate private device info block */ | 460 | /* allocate private device info block */ |
461 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); | 461 | priv = kzalloc(sizeof(*priv), GFP_KERNEL); |
462 | if (!priv) | 462 | if (!priv) { |
463 | ret = -ENOMEM; | ||
463 | goto out_put; | 464 | goto out_put; |
465 | } | ||
464 | 466 | ||
465 | priv->magic = IRTTY_MAGIC; | 467 | priv->magic = IRTTY_MAGIC; |
466 | priv->tty = tty; | 468 | priv->tty = tty; |
diff --git a/drivers/net/irda/mcs7780.c b/drivers/net/irda/mcs7780.c index 1a00b5990cb8..f07c340990da 100644 --- a/drivers/net/irda/mcs7780.c +++ b/drivers/net/irda/mcs7780.c | |||
@@ -920,8 +920,10 @@ static int mcs_probe(struct usb_interface *intf, | |||
920 | 920 | ||
921 | ndev->netdev_ops = &mcs_netdev_ops; | 921 | ndev->netdev_ops = &mcs_netdev_ops; |
922 | 922 | ||
923 | if (!intf->cur_altsetting) | 923 | if (!intf->cur_altsetting) { |
924 | ret = -ENOMEM; | ||
924 | goto error2; | 925 | goto error2; |
926 | } | ||
925 | 927 | ||
926 | ret = mcs_find_endpoints(mcs, intf->cur_altsetting->endpoint, | 928 | ret = mcs_find_endpoints(mcs, intf->cur_altsetting->endpoint, |
927 | intf->cur_altsetting->desc.bNumEndpoints); | 929 | intf->cur_altsetting->desc.bNumEndpoints); |
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); |
diff --git a/drivers/net/irda/sa1100_ir.c b/drivers/net/irda/sa1100_ir.c index e25067552b20..42fde9ed23e1 100644 --- a/drivers/net/irda/sa1100_ir.c +++ b/drivers/net/irda/sa1100_ir.c | |||
@@ -940,8 +940,10 @@ static int sa1100_irda_probe(struct platform_device *pdev) | |||
940 | goto err_mem_3; | 940 | goto err_mem_3; |
941 | 941 | ||
942 | dev = alloc_irdadev(sizeof(struct sa1100_irda)); | 942 | dev = alloc_irdadev(sizeof(struct sa1100_irda)); |
943 | if (!dev) | 943 | if (!dev) { |
944 | err = -ENOMEM; | ||
944 | goto err_mem_4; | 945 | goto err_mem_4; |
946 | } | ||
945 | 947 | ||
946 | SET_NETDEV_DEV(dev, &pdev->dev); | 948 | SET_NETDEV_DEV(dev, &pdev->dev); |
947 | 949 | ||
diff --git a/drivers/net/irda/sh_irda.c b/drivers/net/irda/sh_irda.c index eb315b8d07a3..4b746d9bd8e7 100644 --- a/drivers/net/irda/sh_irda.c +++ b/drivers/net/irda/sh_irda.c | |||
@@ -808,8 +808,8 @@ static int __devinit sh_irda_probe(struct platform_device *pdev) | |||
808 | goto err_mem_4; | 808 | goto err_mem_4; |
809 | 809 | ||
810 | platform_set_drvdata(pdev, ndev); | 810 | platform_set_drvdata(pdev, ndev); |
811 | 811 | err = request_irq(irq, sh_irda_irq, IRQF_DISABLED, "sh_irda", self); | |
812 | if (request_irq(irq, sh_irda_irq, IRQF_DISABLED, "sh_irda", self)) { | 812 | if (err) { |
813 | dev_warn(&pdev->dev, "Unable to attach sh_irda interrupt\n"); | 813 | dev_warn(&pdev->dev, "Unable to attach sh_irda interrupt\n"); |
814 | goto err_mem_4; | 814 | goto err_mem_4; |
815 | } | 815 | } |
diff --git a/drivers/net/irda/sh_sir.c b/drivers/net/irda/sh_sir.c index 795109425568..624ac1939e85 100644 --- a/drivers/net/irda/sh_sir.c +++ b/drivers/net/irda/sh_sir.c | |||
@@ -741,6 +741,7 @@ static int __devinit sh_sir_probe(struct platform_device *pdev) | |||
741 | self->clk = clk_get(&pdev->dev, clk_name); | 741 | self->clk = clk_get(&pdev->dev, clk_name); |
742 | if (IS_ERR(self->clk)) { | 742 | if (IS_ERR(self->clk)) { |
743 | dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name); | 743 | dev_err(&pdev->dev, "cannot get clock \"%s\"\n", clk_name); |
744 | err = -ENODEV; | ||
744 | goto err_mem_3; | 745 | goto err_mem_3; |
745 | } | 746 | } |
746 | 747 | ||
@@ -760,8 +761,8 @@ static int __devinit sh_sir_probe(struct platform_device *pdev) | |||
760 | goto err_mem_4; | 761 | goto err_mem_4; |
761 | 762 | ||
762 | platform_set_drvdata(pdev, ndev); | 763 | platform_set_drvdata(pdev, ndev); |
763 | 764 | err = request_irq(irq, sh_sir_irq, IRQF_DISABLED, "sh_sir", self); | |
764 | if (request_irq(irq, sh_sir_irq, IRQF_DISABLED, "sh_sir", self)) { | 765 | if (err) { |
765 | dev_warn(&pdev->dev, "Unable to attach sh_sir interrupt\n"); | 766 | dev_warn(&pdev->dev, "Unable to attach sh_sir interrupt\n"); |
766 | goto err_mem_4; | 767 | goto err_mem_4; |
767 | } | 768 | } |