[PATCH] virnetdevopenvswitch: Remove redundant declaration

Peng Liang posted 1 patch 2 years, 11 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20210520064606.2643263-1-liangpeng10@huawei.com
src/util/virnetdevopenvswitch.h | 3 ---
1 file changed, 3 deletions(-)
[PATCH] virnetdevopenvswitch: Remove redundant declaration
Posted by Peng Liang 2 years, 11 months ago
virNetDevOpenvswitchInterfaceGetMaster is declared twice in
src/util/virnetdevopenvswitch.h.  Remove the last one.

Signed-off-by: Peng Liang <liangpeng10@huawei.com>
---
 src/util/virnetdevopenvswitch.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/util/virnetdevopenvswitch.h b/src/util/virnetdevopenvswitch.h
index 35717085827e..75253768558f 100644
--- a/src/util/virnetdevopenvswitch.h
+++ b/src/util/virnetdevopenvswitch.h
@@ -57,9 +57,6 @@ int virNetDevOpenvswitchInterfaceStats(const char *ifname,
                                        virDomainInterfaceStatsPtr stats)
     ATTRIBUTE_NONNULL(1) G_GNUC_WARN_UNUSED_RESULT;
 
-int virNetDevOpenvswitchInterfaceGetMaster(const char *ifname, char **master)
-    ATTRIBUTE_NONNULL(1) G_GNUC_WARN_UNUSED_RESULT;
-
 int
 virNetDevOpenvswitchMaybeUnescapeReply(char *reply)
     ATTRIBUTE_NONNULL(1) G_GNUC_WARN_UNUSED_RESULT;
-- 
2.31.1


Re: [PATCH] virnetdevopenvswitch: Remove redundant declaration
Posted by Michal Prívozník 2 years, 11 months ago
On 5/20/21 8:46 AM, Peng Liang wrote:
> virNetDevOpenvswitchInterfaceGetMaster is declared twice in
> src/util/virnetdevopenvswitch.h.  Remove the last one.
> 
> Signed-off-by: Peng Liang <liangpeng10@huawei.com>
> ---
>  src/util/virnetdevopenvswitch.h | 3 ---
>  1 file changed, 3 deletions(-)

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

and pushed.

Michal