]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
net: fman: Remove some unused fields in some structure
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 2 Apr 2024 18:55:50 +0000 (20:55 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 4 Apr 2024 02:30:28 +0000 (19:30 -0700)
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>
drivers/net/ethernet/freescale/fman/fman_memac.c
drivers/net/ethernet/freescale/fman/fman_muram.c

index 758535adc9ff5bb0a043683e1875ff1f3c9c2005..92b8f4ab26f1d7392b76ebf11080b2331bb65876 100644 (file)
@@ -267,7 +267,6 @@ struct memac_cfg {
        bool reset_on_init;
        bool pause_ignore;
        bool promiscuous_mode_enable;
-       struct fixed_phy_status *fixed_link;
        u16 max_frame_length;
        u16 pause_quanta;
        u32 tx_ipg_length;
index f557d68e5b7601db914a2a4e329b4ce45bef90f9..1ed245a2ee016905206b59ff21784c3609c1d8ec 100644 (file)
@@ -12,7 +12,6 @@
 struct muram_info {
        struct gen_pool *pool;
        void __iomem *vbase;
-       size_t size;
        phys_addr_t pbase;
 };