On 3/17/20 1:28 PM, Fabian Ebner wrote:
> Moved code so that initialization of drivedesc_hash stays a single block.
> Avoid auto-vivication in parse_drive.
> 
> Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
> ---
> 
> Follow-up suggested by Fabian G.
> 
> I checked the call-sites for is_valid_drivename and in most cases
> it won't benefit from including unused drives, often there is another
> branch where unused drives are treated differently.
> 
>  PVE/QemuServer.pm       |  4 ----
>  PVE/QemuServer/Drive.pm | 44 ++++++++++++++++++++++-------------------
>  2 files changed, 24 insertions(+), 24 deletions(-)
> 

applied, thanks!

_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to