From patchwork Fri Jan 1 15:48:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7939691 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E4A559F88A for ; Fri, 1 Jan 2016 15:51:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1CC9820225 for ; Fri, 1 Jan 2016 15:51:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 152D320373 for ; Fri, 1 Jan 2016 15:51:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752206AbcAAPus (ORCPT ); Fri, 1 Jan 2016 10:50:48 -0500 Received: from m50-133.163.com ([123.125.50.133]:44020 "EHLO m50-133.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752057AbcAAPt4 (ORCPT ); Fri, 1 Jan 2016 10:49:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=DRo2jUQhKL7jqVywR0 nJlvuyQd9cbeDPBkV4hj0d3pc=; b=ZCu3Qigy6OONsxBCBfZoxYQwACAfQkOPoj lz9Fy19ag2zyz/FrAPoWNZAbR2yvJ/PY9/JOP05A8na47x+syRfjitTI+YcuT5Sy pkbJfiZ5tWLCWKN3oN28Qlm+x7KmD1zs+FG7z4x1AWDc2ITyDTM+iSpRByXLTLg6 8vmRdMqmU= Received: from localhost (unknown [116.77.129.183]) by smtp3 (Coremail) with SMTP id DdGowEC5IUUBoIZW9aSXAA--.4012S3; Fri, 01 Jan 2016 23:49:22 +0800 (CST) From: Geliang Tang To: Larry Finger , Chaoming Li , Kalle Valo Cc: Geliang Tang , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/6] rtlwifi: use to_delayed_work Date: Fri, 1 Jan 2016 23:48:55 +0800 Message-Id: <9453f5a6fe422f47b095d1b0a9fb5eb5a4935c4d.1451661580.git.geliangtang@163.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> References: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> In-Reply-To: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> References: <5df0633bd7779dd21192f7a41c634efd78f8606c.1451661580.git.geliangtang@163.com> X-CM-TRANSID: DdGowEC5IUUBoIZW9aSXAA--.4012S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1xAF48Gw4Utr4fJw4DXFb_yoW3trc_ur W0qF4fu3WrK34xKFZ8AFW3Z3yjy3yDZr1kGa92qFW7Jr43ZrWjyryFvry7Jr1rWr17Arnx Crn8JF18C345AjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUj8nY7UUUUU== X-Originating-IP: [116.77.129.183] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbivwPimVWBPXQ+BQAAsh Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang --- drivers/net/wireless/realtek/rtlwifi/wifi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 4544752..d37ce16 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2873,7 +2873,7 @@ value to host byte ordering.*/ (ppsc->cur_ps_level |= _ps_flg) #define container_of_dwork_rtl(x, y, z) \ - container_of(container_of(x, struct delayed_work, work), y, z) + container_of(to_delayed_work(x), y, z) #define FILL_OCTET_STRING(_os, _octet, _len) \ (_os).octet = (u8 *)(_octet); \