[PATCH] Drop needless variable

Erik Skultety eskultet at redhat.com
Tue May 5 08:46:22 UTC 2020


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>




More information about the libvir-list mailing list