jffs2: use to_delayed_work
authorGeliang Tang <geliangtang@163.com>
Fri, 1 Jan 2016 14:06:27 +0000 (22:06 +0800)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 6 Jan 2016 23:16:46 +0000 (15:16 -0800)
Use to_delayed_work() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@163.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
fs/jffs2/wbuf.c

index f3a4857ff0718794b967836e796b8f9c9e345ae7..5a3da3f52908ff8f89ad0f8985e1fe22381bb2fe 100644 (file)
@@ -1153,7 +1153,7 @@ static struct jffs2_sb_info *work_to_sb(struct work_struct *work)
 {
        struct delayed_work *dwork;
 
-       dwork = container_of(work, struct delayed_work, work);
+       dwork = to_delayed_work(work);
        return container_of(dwork, struct jffs2_sb_info, wbuf_dwork);
 }