Message ID | CAPDGunOVtW5mZWXwEjtT3qWXNG4WgkdEa3jV79QKVHOmjHU-9Q@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | net: ipv4: Fixed some styling issues. | expand |
On 3/17/21 9:07 AM, Anish Udupa wrote: > Ran checkpatch and found these warnings. Fixed some of them in this patch. > a) Added a space before '='. > b) Removed the space before the tab. > > Signed-off-by: Anish Udupa H <udupa.anish@gmail.com> > --- > net/ipv4/route.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/net/ipv4/route.c b/net/ipv4/route.c > index 02d81d79deeb..0b9024584fde 100644 > --- a/net/ipv4/route.c > +++ b/net/ipv4/route.c > @@ -2236,7 +2236,7 @@ out: return err; > if (!rth) > goto e_nobufs; > > - rth->dst.output= ip_rt_bug; > + rth->dst.output = ip_rt_bug; > #ifdef CONFIG_IP_ROUTE_CLASSID > rth->dst.tclassid = itag; > #endif > @@ -2244,9 +2244,9 @@ out: return err; > > RT_CACHE_STAT_INC(in_slow_tot); > if (res->type == RTN_UNREACHABLE) { > - rth->dst.input= ip_error; > - rth->dst.error= -err; > - rth->rt_flags &= ~RTCF_LOCAL; > + rth->dst.input = ip_error; > + rth->dst.error = -err; > + rth->rt_flags &= ~RTCF_LOCAL; > } > > if (do_cache) { > your patch seems to have lost one or more tabs at the beginning of each line.
diff --git a/net/ipv4/route.c b/net/ipv4/route.c index 02d81d79deeb..0b9024584fde 100644 --- a/net/ipv4/route.c +++ b/net/ipv4/route.c @@ -2236,7 +2236,7 @@ out: return err; if (!rth) goto e_nobufs; - rth->dst.output= ip_rt_bug; + rth->dst.output = ip_rt_bug; #ifdef CONFIG_IP_ROUTE_CLASSID rth->dst.tclassid = itag; #endif @@ -2244,9 +2244,9 @@ out: return err; RT_CACHE_STAT_INC(in_slow_tot); if (res->type == RTN_UNREACHABLE) { - rth->dst.input= ip_error; - rth->dst.error= -err; - rth->rt_flags &= ~RTCF_LOCAL; + rth->dst.input = ip_error; + rth->dst.error = -err; + rth->rt_flags &= ~RTCF_LOCAL; } if (do_cache) {
Ran checkpatch and found these warnings. Fixed some of them in this patch. a) Added a space before '='. b) Removed the space before the tab. Signed-off-by: Anish Udupa H <udupa.anish@gmail.com> --- net/ipv4/route.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)