Skip to content

Commit 29abdf6

Browse files
hormskuba-moo
authored andcommitted
tty: caif: removed unused function debugfs_tx()
Remove debugfs_tx() which was added when the caif driver was added in commit 9b27105 ("net-caif-driver: add CAIF serial driver (ldisc)") but it has never been used. Flagged by LLVM 19.1.7 W=1 builds. Signed-off-by: Simon Horman <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent b71f292 commit 29abdf6

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/net/caif/caif_serial.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -126,15 +126,6 @@ static inline void debugfs_rx(struct ser_device *ser, const u8 *data, int size)
126126
ser->rx_blob.data = ser->rx_data;
127127
ser->rx_blob.size = size;
128128
}
129-
130-
static inline void debugfs_tx(struct ser_device *ser, const u8 *data, int size)
131-
{
132-
if (size > sizeof(ser->tx_data))
133-
size = sizeof(ser->tx_data);
134-
memcpy(ser->tx_data, data, size);
135-
ser->tx_blob.data = ser->tx_data;
136-
ser->tx_blob.size = size;
137-
}
138129
#else
139130
static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty)
140131
{
@@ -151,11 +142,6 @@ static inline void update_tty_status(struct ser_device *ser)
151142
static inline void debugfs_rx(struct ser_device *ser, const u8 *data, int size)
152143
{
153144
}
154-
155-
static inline void debugfs_tx(struct ser_device *ser, const u8 *data, int size)
156-
{
157-
}
158-
159145
#endif
160146

161147
static void ldisc_receive(struct tty_struct *tty, const u8 *data,

0 commit comments

Comments
 (0)