diff mbox series

[2/2] hw/audio/intel-hda: Drop unnecessary prototype

Message ID 20221014142632.2092404-3-peter.maydell@linaro.org
State Superseded
Headers show
Series hw/audio/intel-hda: Don't use device_legacy_reset() | expand

Commit Message

Peter Maydell Oct. 14, 2022, 2:26 p.m. UTC
The only use of intel_hda_reset() is after its definition, so we
don't need to separately declare its prototype at the top of the
file; drop the unnecessary line.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/audio/intel-hda.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Philippe Mathieu-Daudé Oct. 17, 2022, 9:05 p.m. UTC | #1
On 14/10/22 16:26, Peter Maydell wrote:
> The only use of intel_hda_reset() is after its definition, so we
> don't need to separately declare its prototype at the top of the
> file; drop the unnecessary line.
> 
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
>   hw/audio/intel-hda.c | 2 --
>   1 file changed, 2 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff mbox series

Patch

diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c
index 38cfa20262e..b9ed231fe84 100644
--- a/hw/audio/intel-hda.c
+++ b/hw/audio/intel-hda.c
@@ -220,8 +220,6 @@  struct IntelHDAReg {
     void       (*rhandler)(IntelHDAState *d, const IntelHDAReg *reg);
 };
 
-static void intel_hda_reset(DeviceState *dev);
-
 /* --------------------------------------------------------------------- */
 
 static hwaddr intel_hda_addr(uint32_t lbase, uint32_t ubase)