Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752611AbbL1Poh (ORCPT ); Mon, 28 Dec 2015 10:44:37 -0500 Received: from m50-133.163.com ([123.125.50.133]:41015 "EHLO m50-133.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752078AbbL1Pod (ORCPT ); Mon, 28 Dec 2015 10:44:33 -0500 From: Geliang Tang To: Greg Kroah-Hartman , Mateusz Kulikowski , Joe Perches Cc: Geliang Tang , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] staging: rtl8192e: use to_delayed_work Date: Mon, 28 Dec 2015 23:43:39 +0800 Message-Id: <24a6893bc5fcf8834c3f02d2817e5daed7ddae8b.1451317026.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <2c0e66fe07809e4069df34cbeba51583ad943c7a.1451317025.git.geliangtang@163.com> References: <2c0e66fe07809e4069df34cbeba51583ad943c7a.1451317025.git.geliangtang@163.com> In-Reply-To: <2c0e66fe07809e4069df34cbeba51583ad943c7a.1451317025.git.geliangtang@163.com> References: <2c0e66fe07809e4069df34cbeba51583ad943c7a.1451317025.git.geliangtang@163.com> X-CM-TRANSID: DdGowEB5NEO+WIFWckR3AA--.447S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1xAF48Gw4rZr4DGF4xCrg_yoW3Cwc_ur WxtFZ7Wr1YkF4fKrnxGr4fZrW8Z3yxXw4kKrnYqFsxZa18AFW5A3s8ZryDAryrWr47GFyU C3sYqryFkrW0vjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUj8nY7UUUUU== X-Originating-IP: [116.77.133.48] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiJQDemVUL9GJmRwAAsL Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 997 Lines: 29 Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/staging/rtl8192e/rtllib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192e/rtllib.h b/drivers/staging/rtl8192e/rtllib.h index 563ac12..d99240e 100644 --- a/drivers/staging/rtl8192e/rtllib.h +++ b/drivers/staging/rtl8192e/rtllib.h @@ -76,7 +76,7 @@ #define container_of_work_rsl(x, y, z) container_of(x, y, z) #define container_of_dwork_rsl(x, y, z) \ - container_of(container_of(x, struct delayed_work, work), y, z) + container_of(to_delayed_work(x), y, z) #define iwe_stream_add_event_rsl(info, start, stop, iwe, len) \ iwe_stream_add_event(info, start, stop, iwe, len) -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/