Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tty: caif: removed unused function debugfs_tx()

Remove debugfs_tx() which was added when the caif driver was added in
commit 9b27105b4a44 ("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 <horms@kernel.org>
Link: https://patch.msgid.link/20250320-caif-debugfs-tx-v1-1-be5654770088@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Simon Horman and committed by
Jakub Kicinski
29abdf66 b71f2927

-14
-14
drivers/net/caif/caif_serial.c
··· 126 126 ser->rx_blob.data = ser->rx_data; 127 127 ser->rx_blob.size = size; 128 128 } 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 - } 138 129 #else 139 130 static inline void debugfs_init(struct ser_device *ser, struct tty_struct *tty) 140 131 { ··· 142 151 static inline void debugfs_rx(struct ser_device *ser, const u8 *data, int size) 143 152 { 144 153 } 145 - 146 - static inline void debugfs_tx(struct ser_device *ser, const u8 *data, int size) 147 - { 148 - } 149 - 150 154 #endif 151 155 152 156 static void ldisc_receive(struct tty_struct *tty, const u8 *data,