qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v9 05/30] bootindex: rework add_boot_device_path


From: Gerd Hoffmann
Subject: Re: [Qemu-devel] [PATCH v9 05/30] bootindex: rework add_boot_device_path function
Date: Thu, 11 Sep 2014 08:58:44 +0200

> +static void del_original_boot_device(DeviceState *dev, const char *suffix)

Hmm, now we have two simliar delete functions.  One which deletes all
entries belonging to a device, and one deleting only in case the suffix
matches (the later being needed to handle the floppy case I guess?).

Can't we combine the two into one, to avoid code duplication?
For example by deleting all entries for a device in case suffix == NULL?

cheers,
  Gerd





reply via email to

[Prev in Thread] Current Thread [Next in Thread]