[PATCH] Drop needless variable

Erik Skultety eskultet at redhat.com
Tue May 5 08:47:13 UTC 2020


On Tue, May 05, 2020 at 10:46:28AM +0200, Erik Skultety wrote:
> On Mon, May 04, 2020 at 05:13:08PM +0200, Michal Privoznik wrote:
> > Instead of the following pattern:
> > 
> >   type ret;
> >   ...
> >   ret = func();
> >   return ret;
> > 
> > we can use:
> > 
> >   return func()
> > 
> > directly.
> > 
> > Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> > ---
> Reviewed-by: Erik Skultety <eskultet at redhat.com>

Also, SFF

-- 
Erik Skultety




More information about the libvir-list mailing list