Subject: Re: [net 5/6] i40e: better return values

From: Jesse Brandeburg <[email-masked]>
Date: Tue, 24 Sep 2013 12:09:06 -0700

On Tue, 24 Sep 2013 10:12:31 -0400
David Miller <[email-masked]> wrote:
> > Ick.  post_increment problem.
> > 
> > 	return ++num_tc;
> > 
> > There's nothing wrong with the original code
> > unless this is a bugfix which should be documented
> > better than "better return values".
> 
> Agreed, this style of coding is asking for a bug.
> 
> If you want to return "num_tc PLUS ONE" just say that:
> 
> 	return num_tc + 1;

Oops! Obviously the original post-inc was not the intent. That was my
bad. good catch Joe! will fix and resubmit.