Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1645245 > unrolled thread

[PATCH 1/4] net-next: stmmac: Convert new_state to bool

Started byCorentin Labbe <clabbe.montjoie@gmail.com>
First post2017-05-19 09:10 +0200
Last post2017-05-21 19:30 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 1/4] net-next: stmmac: Convert new_state to bool Corentin Labbe <clabbe.montjoie@gmail.com> - 2017-05-19 09:10 +0200
    Re: [PATCH 1/4] net-next: stmmac: Convert new_state to bool David Miller <davem@davemloft.net> - 2017-05-21 19:30 +0200

#1645245 — [PATCH 1/4] net-next: stmmac: Convert new_state to bool

FromCorentin Labbe <clabbe.montjoie@gmail.com>
Date2017-05-19 09:10 +0200
Subject[PATCH 1/4] net-next: stmmac: Convert new_state to bool
Message-ID<tIKcW-76X-13@gated-at.bofh.it>
This patch convert new_state from int to bool since it store only 1 or 0

Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
---
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
index 1da17cd519f6..2b778f63d1d5 100644
--- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
+++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
@@ -785,7 +785,7 @@ static void stmmac_adjust_link(struct net_device *dev)
 	struct stmmac_priv *priv = netdev_priv(dev);
 	struct phy_device *phydev = dev->phydev;
 	unsigned long flags;
-	int new_state = 0;
+	bool new_state = 0;
 
 	if (!phydev)
 		return;
-- 
2.13.0

[toc] | [next] | [standalone]


#1646382

FromDavid Miller <davem@davemloft.net>
Date2017-05-21 19:30 +0200
Message-ID<tJCQ2-2j9-1@gated-at.bofh.it>
In reply to#1645245
From: Corentin Labbe <clabbe.montjoie@gmail.com>
Date: Fri, 19 May 2017 09:03:32 +0200

> This patch convert new_state from int to bool since it store only 1 or 0
> 
> Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>

You must also change it to use the values "true" and "false" as well.

Thanks.

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web