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

tty: jsm: remove unused struct jsm_board members

clang-struct [1] found jsm_board::type and ::jsm_board_entry unused.

::jsm_board_entry is unused since 614a7d6a76b7 ("fix up newly added jsm driver")
::type was never used as far as I can tell. Even when the driver was
introduced in the pre-git era.

Remove them both.

[1] https://github.com/jirislaby/clang-struct

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20231121103626.17772-5-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
e1d64e15 79b18e51

-3
-3
drivers/tty/serial/jsm/jsm.h
··· 125 125 { 126 126 int boardnum; /* Board number: 0-32 */ 127 127 128 - int type; /* Type of board */ 129 128 u8 rev; /* PCI revision ID */ 130 129 struct pci_dev *pci_dev; 131 130 u32 maxports; /* MAX ports this board can handle */ ··· 152 153 u32 bd_dividend; /* Board/UARTs specific dividend */ 153 154 154 155 struct board_ops *bd_ops; 155 - 156 - struct list_head jsm_board_entry; 157 156 }; 158 157 159 158 /************************************************************************