提交 6e898bfd 编写于 作者: G Geliang Tang 提交者: David S. Miller

tilepro: use to_delayed_work

Use to_delayed_work() instead of open-coding it.
Signed-off-by: NGeliang Tang <geliangtang@163.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 48b874cc
...@@ -1349,8 +1349,7 @@ static int tile_net_open_inner(struct net_device *dev) ...@@ -1349,8 +1349,7 @@ static int tile_net_open_inner(struct net_device *dev)
*/ */
static void tile_net_open_retry(struct work_struct *w) static void tile_net_open_retry(struct work_struct *w)
{ {
struct delayed_work *dw = struct delayed_work *dw = to_delayed_work(w);
container_of(w, struct delayed_work, work);
struct tile_net_priv *priv = struct tile_net_priv *priv =
container_of(dw, struct tile_net_priv, retry_work); container_of(dw, struct tile_net_priv, retry_work);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册