diff mbox series

[7/7] net/can: Remove unused struct 'CanBusState'

Message ID 20240505171444.333302-8-dave@treblig.org (mailing list archive)
State New
Headers show
Series Remove some unused structures | expand

Commit Message

Dr. David Alan Gilbert May 5, 2024, 5:14 p.m. UTC
As far as I can tell this struct has never been used in this
file (it is used in can_core.c).

Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
---
 net/can/can_host.c | 6 ------
 1 file changed, 6 deletions(-)

Comments

Philippe Mathieu-Daudé May 6, 2024, 7:43 a.m. UTC | #1
On 5/5/24 19:14, Dr. David Alan Gilbert wrote:
> As far as I can tell this struct has never been used in this
> file (it is used in can_core.c).
> 
> Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org>
> ---
>   net/can/can_host.c | 6 ------
>   1 file changed, 6 deletions(-)

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

Patch

diff --git a/net/can/can_host.c b/net/can/can_host.c
index a3c84028c6..b2fe553f91 100644
--- a/net/can/can_host.c
+++ b/net/can/can_host.c
@@ -34,12 +34,6 @@ 
 #include "net/can_emu.h"
 #include "net/can_host.h"
 
-struct CanBusState {
-    Object object;
-
-    QTAILQ_HEAD(, CanBusClientState) clients;
-};
-
 static void can_host_disconnect(CanHostState *ch)
 {
     CanHostClass *chc = CAN_HOST_GET_CLASS(ch);