Defer ttl decrement to optimize in tx_err case. There is no need
to decrease ttl in the case of goto tx_err.
Signed-off-by: Kangmin Park <l4stpr0gr4m@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
        /* Verify ttl is valid */
        if (dec.ttl <= 1)
                goto err;
-       dec.ttl -= 1;
 
        /* Find the output device */
        out_dev = rcu_dereference(nh->nh_dev);
        skb->dev = out_dev;
        skb->protocol = htons(ETH_P_MPLS_UC);
 
+       dec.ttl -= 1;
        if (unlikely(!new_header_size && dec.bos)) {
                /* Penultimate hop popping */
                if (!mpls_egress(dev_net(out_dev), rt, skb, dec))