static int stmmac_request_irq_multi_msi(struct net_device *dev)
 {
-       enum request_irq_err irq_err = REQ_IRQ_ERR_NO;
        struct stmmac_priv *priv = netdev_priv(dev);
+       enum request_irq_err irq_err;
        cpumask_t cpu_mask;
        int irq_idx = 0;
        char *int_name;
 
 static int stmmac_request_irq_single(struct net_device *dev)
 {
-       enum request_irq_err irq_err = REQ_IRQ_ERR_NO;
        struct stmmac_priv *priv = netdev_priv(dev);
+       enum request_irq_err irq_err;
        int ret;
 
        ret = request_irq(dev->irq, stmmac_interrupt,
                           "%s: ERROR: allocating the IRQ %d (error: %d)\n",
                           __func__, dev->irq, ret);
                irq_err = REQ_IRQ_ERR_MAC;
-               return ret;
+               goto irq_error;
        }
 
        /* Request the Wake IRQ in case of another line
                                   "%s: ERROR: allocating the WoL IRQ %d (%d)\n",
                                   __func__, priv->wol_irq, ret);
                        irq_err = REQ_IRQ_ERR_WOL;
-                       return ret;
+                       goto irq_error;
                }
        }