tilepro: use to_delayed_work
authorGeliang Tang <geliangtang@163.com>
Fri, 1 Jan 2016 15:48:57 +0000 (23:48 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jan 2016 21:07:16 +0000 (16:07 -0500)
Use to_delayed_work() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/tile/tilepro.c

index 6f0a4495c7f33613fed7c30a76d4ad329b80f9d9..298e059d04986b90b3132d453d453d30f8abe062 100644 (file)
@@ -1349,8 +1349,7 @@ static int tile_net_open_inner(struct net_device *dev)
  */
 static void tile_net_open_retry(struct work_struct *w)
 {
-       struct delayed_work *dw =
-               container_of(w, struct delayed_work, work);
+       struct delayed_work *dw = to_delayed_work(w);
 
        struct tile_net_priv *priv =
                container_of(dw, struct tile_net_priv, retry_work);