Re: [PATCH net-next 1/9] net: Remove martian_source_keep_err goto label

2015-09-23 Thread David Ahern
On 9/23/15 10:19 AM, Tom Herbert wrote: @@ -1782,7 +1782,7 @@ out: return err; err = fib_validate_source(skb, saddr, 0, tos, 0, dev, in_dev, &itag); if (err < 0) - goto martian_source_keep_err;

Re: [PATCH net-next 1/9] net: Remove martian_source_keep_err goto label

2015-09-23 Thread Tom Herbert
On Wed, Sep 23, 2015 at 8:15 AM, David Ahern wrote: > err is initialized to -EINVAL when it is declared. It is not reset until > fib_lookup which is well after the 3 users of the martian_source jump. So > resetting err to -EINVAL at martian_source label is not needed. > > Removing that line obviat

[PATCH net-next 1/9] net: Remove martian_source_keep_err goto label

2015-09-23 Thread David Ahern
err is initialized to -EINVAL when it is declared. It is not reset until fib_lookup which is well after the 3 users of the martian_source jump. So resetting err to -EINVAL at martian_source label is not needed. Removing that line obviates the need for the martian_source_keep_err label so delete it

Re: [PATCH net-next 1/9] net: Remove martian_source_keep_err goto label

2015-09-22 Thread Alexander Duyck
On 09/22/2015 06:04 PM, Alexander Duyck wrote: On 09/22/2015 03:55 PM, David Ahern wrote: err is initialized to -EINVAL when it is declared. It is not reset until fib_lookup which is well after the 3 users of the martian_source jump. So resetting err to -EINVAL at martian_source label is not nee

Re: [PATCH net-next 1/9] net: Remove martian_source_keep_err goto label

2015-09-22 Thread Alexander Duyck
On 09/22/2015 03:55 PM, David Ahern wrote: err is initialized to -EINVAL when it is declared. It is not reset until fib_lookup which is well after the 3 users of the martian_source jump. So resetting err to -EINVAL at martian_source label is not needed. Removing that line obviates the need for t

[PATCH net-next 1/9] net: Remove martian_source_keep_err goto label

2015-09-22 Thread David Ahern
err is initialized to -EINVAL when it is declared. It is not reset until fib_lookup which is well after the 3 users of the martian_source jump. So resetting err to -EINVAL at martian_source label is not needed. Removing that line obviates the need for the martian_source_keep_err label so delete it