diff mbox series

[1/2] hw/core/fw-path-provider: turn fw_path_provider_get_dev_path() static

Message ID 20220121202952.24763-2-danielhb413@gmail.com
State New
Headers show
Series some simplifications in hw/core/fw-path-provider.c | expand

Commit Message

Daniel Henrique Barboza Jan. 21, 2022, 8:29 p.m. UTC
This function is used only by fw_path_provider_try_get_dev_path() in the
same file.

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
---
 hw/core/fw-path-provider.c    | 4 ++--
 include/hw/fw-path-provider.h | 2 --
 2 files changed, 2 insertions(+), 4 deletions(-)
diff mbox series

Patch

diff --git a/hw/core/fw-path-provider.c b/hw/core/fw-path-provider.c
index 4840faefd1..4bcf4e7e34 100644
--- a/hw/core/fw-path-provider.c
+++ b/hw/core/fw-path-provider.c
@@ -19,8 +19,8 @@ 
 #include "hw/fw-path-provider.h"
 #include "qemu/module.h"
 
-char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
-                                    DeviceState *dev)
+static char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
+                                           DeviceState *dev)
 {
     FWPathProviderClass *k = FW_PATH_PROVIDER_GET_CLASS(p);
 
diff --git a/include/hw/fw-path-provider.h b/include/hw/fw-path-provider.h
index 8e1d45651c..9ef50ebe4a 100644
--- a/include/hw/fw-path-provider.h
+++ b/include/hw/fw-path-provider.h
@@ -36,8 +36,6 @@  struct FWPathProviderClass {
     char *(*get_dev_path)(FWPathProvider *p, BusState *bus, DeviceState *dev);
 };
 
-char *fw_path_provider_get_dev_path(FWPathProvider *p, BusState *bus,
-                                    DeviceState *dev);
 char *fw_path_provider_try_get_dev_path(Object *o, BusState *bus,
                                         DeviceState *dev);