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.

net: fman: Remove some unused fields in some structure

In "struct muram_info", the 'size' field is unused.
In "struct memac_cfg", the 'fixed_link' field is unused.

Remove them.

Found with cppcheck, unusedStructMember.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/425222d4f6c584e8316ccb7b2ef415a85c96e455.1712084103.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Christophe JAILLET and committed by
Jakub Kicinski
04af1d64 1b39b79d

-2
-1
drivers/net/ethernet/freescale/fman/fman_memac.c
··· 267 267 bool reset_on_init; 268 268 bool pause_ignore; 269 269 bool promiscuous_mode_enable; 270 - struct fixed_phy_status *fixed_link; 271 270 u16 max_frame_length; 272 271 u16 pause_quanta; 273 272 u32 tx_ipg_length;
-1
drivers/net/ethernet/freescale/fman/fman_muram.c
··· 12 12 struct muram_info { 13 13 struct gen_pool *pool; 14 14 void __iomem *vbase; 15 - size_t size; 16 15 phys_addr_t pbase; 17 16 }; 18 17