mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 23:22:31 +02:00
net: stmmac: make chain_mode a boolean
priv->chain_mode is only tested for non-zero, so it can be a boolean. Change its type to boolean, and add a comment describing this member. Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/E1vvuXi-0000000AvnR-3btC@rmk-PC.armlinux.org.uk Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
ecb037f58d
commit
a2a3832ad7
|
|
@ -307,8 +307,9 @@ struct stmmac_priv {
|
|||
* when set, struct dma_extended_desc
|
||||
*/
|
||||
bool extend_desc;
|
||||
/* chain_mode: requested descriptor mode */
|
||||
bool chain_mode;
|
||||
unsigned int mode;
|
||||
unsigned int chain_mode;
|
||||
struct kernel_hwtstamp_config tstamp_config;
|
||||
struct ptp_clock *ptp_clock;
|
||||
struct ptp_clock_info ptp_clock_ops;
|
||||
|
|
|
|||
|
|
@ -7339,7 +7339,7 @@ static int stmmac_hw_init(struct stmmac_priv *priv)
|
|||
/* dwmac-sun8i only work in chain mode */
|
||||
if (priv->plat->flags & STMMAC_FLAG_HAS_SUN8I)
|
||||
chain_mode = 1;
|
||||
priv->chain_mode = chain_mode;
|
||||
priv->chain_mode = !!chain_mode;
|
||||
|
||||
/* Initialize HW Interface */
|
||||
ret = stmmac_hwif_init(priv);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user