Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
virnetdev: Make virNetDevGenerateName() return 1 if no name was gener…
…ated A caller might be interested in the case when @ifname was already set and it wasn't a template. In such case the virNetDevGenerateName() does not touch the @ifname at all and returns 0 to indicate success. Make it return 1 to distinguish this case from the other case, in which a new name was generated. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Laine Stump <laine@redhat.com>
- Loading branch information