From patchwork Fri Mar 18 02:22:24 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julian Calaby X-Patchwork-Id: 8615761 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id AE33FC0553 for ; Fri, 18 Mar 2016 02:22:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D9BBF201F4 for ; Fri, 18 Mar 2016 02:22:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 000D32014A for ; Fri, 18 Mar 2016 02:22:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752613AbcCRCWd (ORCPT ); Thu, 17 Mar 2016 22:22:33 -0400 Received: from mail-pf0-f175.google.com ([209.85.192.175]:35774 "EHLO mail-pf0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751316AbcCRCWb (ORCPT ); Thu, 17 Mar 2016 22:22:31 -0400 Received: by mail-pf0-f175.google.com with SMTP id n5so145890697pfn.2 for ; Thu, 17 Mar 2016 19:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=maxvDXXWk1TbPoN4pgj4TLYe71ulhzrjm6vHFjxMkGM=; b=T0Ui5WRtvdKmv7vlktYAhzZvm1YmvihVVjvqrHNKhCIpWxJ7Zzi3Fd9M/x6vwSzO/G uUTODVyw5p9nTClfVvmG6yuO1OSmtzF973LddUuHwVr1pBv4CcvIfh3CBDCw6UFq7g55 RTjuGFbC3NFddMFybhEjBgOnurzmgp2gfxEzXHWqPeF8qbChnmMqvXL7rbS0jcAUROkP yRIEBMGoBerbCrt0/8DomV/KWBWF0f8aFEeL2oGFmSCL9AgNZCrhBuqyAEiHo3k3DHiT KxGbt7ZFeic+C1R6Lv7f1VSySPLJF27+gUZHF1csy0EwEy0pwzkG1C7nUJsvyynCy/am MGHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=maxvDXXWk1TbPoN4pgj4TLYe71ulhzrjm6vHFjxMkGM=; b=NiFvp6sacEoCEeeGlABAZp8iWRq7aqkKIC89Sbkm5obXwnyUpnQHz92HDuLaxDv4NG VQKpqUmrG74iZ+C9lqleWYSz+Nt/P57nnKcQa6qe4H603/at9IuyszuqNSmdXqWc5Pvb AOesdfomjGm8UVA/RNydCF0FRsIUNZuwSVUjW1jdsog+n76LMxbxkbKh/VPIT3kiK+Fs 2pnrJDAfEqAHCskGOCutG7AM6TNUcqMxJCinr2Dxn+8IIfCFBaMPrchiop7OKphSEbrA A0/qe5bbmsnQNgebv4v6aN6+D676/kXiZ3GulbcfYtSwRWVzbr9BIDta5UntaOJituQs YdAQ== X-Gm-Message-State: AD7BkJI39NtI9t0tjfKYNWMMJwUjLSKB9Ekef03R01vdhQTRARoKGSFQEKNTqJjYgWHiWA== X-Received: by 10.66.155.232 with SMTP id vz8mr19853759pab.53.1458267751158; Thu, 17 Mar 2016 19:22:31 -0700 (PDT) Received: from multimedia.lan (C-59-101-14-180.hay.connect.net.au. [59.101.14.180]) by smtp.gmail.com with ESMTPSA id m84sm16360712pfi.75.2016.03.17.19.22.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 17 Mar 2016 19:22:30 -0700 (PDT) From: Julian Calaby To: Kalle Valo Cc: Larry Finger , Chaoming Li , Geliang Tang , Hans Ulli Kroll , Colin Ian King , linux-wireless@vger.kernel.org Subject: [PATCH 05/19] rtlwifi: use to_delayed_work() Date: Fri, 18 Mar 2016 13:22:24 +1100 Message-Id: <1d07f186a933c2d1f0bf1780ab1dcb50d3a808aa.1458262312.git.julian.calaby@gmail.com> X-Mailer: git-send-email 2.7.0 In-Reply-To: References: 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_ADSP_CUSTOM_MED, 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 From: Geliang Tang Use to_delayed_work() instead of open-coding it. Signed-off-by: Geliang Tang [Update commit message] Signed-off-by: Julian Calaby Acked-by: Larry Finger --- 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 554d814..edece53 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2867,7 +2867,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); \