From patchwork Fri Jan 1 14:59:12 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geliang Tang X-Patchwork-Id: 7939641 Return-Path: X-Original-To: patchwork-linux-scsi@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 BE391BEEE5 for ; Fri, 1 Jan 2016 15:01:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0536F204CF for ; Fri, 1 Jan 2016 15:01:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 297AE204AF for ; Fri, 1 Jan 2016 15:01:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751971AbcAAPBU (ORCPT ); Fri, 1 Jan 2016 10:01:20 -0500 Received: from m50-138.163.com ([123.125.50.138]:40213 "EHLO m50-138.163.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751840AbcAAPBT (ORCPT ); Fri, 1 Jan 2016 10:01:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id; bh=6ws4i5viOKSFG6XWcx TAdYdGZJ8sPvos6ayJHdlOUQA=; b=iNU6vOkB1Xrju653UllzkVhYdzw/DQD1TS 2UUKr9Gi5i2CDSXAhSz1bMcBSuG6VW2NjdOLXT/fyVWXKHlKc0Swtf9SBs92suGW axUxEAjpXemw1Vtmb5ptYROt5yyp37Bgi25ePjLc5UdnjpQdXHOfdRKetGex4a6y qGTyecHS4= Received: from localhost (unknown [116.77.129.183]) by smtp1 (Coremail) with SMTP id C9GowADHhcRslIZWILYbBw--.19125S3; Fri, 01 Jan 2016 22:59:56 +0800 (CST) From: Geliang Tang To: "James E.J. Bottomley" , "Martin K. Petersen" , Johannes Thumshirn Cc: Geliang Tang , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] mvsas: use to_delayed_work Date: Fri, 1 Jan 2016 22:59:12 +0800 Message-Id: X-Mailer: git-send-email 2.5.0 In-Reply-To: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> References: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> In-Reply-To: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> References: <643e31066f3378b9521dd9cd8c569ccfcf185d61.1451659910.git.geliangtang@163.com> X-CM-TRANSID: C9GowADHhcRslIZWILYbBw--.19125S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gw1xAF48Xr1DJw4UKr1rJFb_yoW3CFb_ur WvqF1Igrn0yr1fKr95ursIyryvyw10qw1vkFsYvryUAFs7Zryjva4jvr1UAryfWw4xAFy3 CwnxWw45Cr1ktjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUjRVbPUUUUU== X-Originating-IP: [116.77.129.183] X-CM-SenderInfo: 5jhoxtpqjwt0rj6rljoofrz/1tbiNQzimVSILKaMTwAAsX Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@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/scsi/mvsas/mv_sas.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/mvsas/mv_sas.c b/drivers/scsi/mvsas/mv_sas.c index e712fe7..78bf557 100644 --- a/drivers/scsi/mvsas/mv_sas.c +++ b/drivers/scsi/mvsas/mv_sas.c @@ -1887,7 +1887,7 @@ static void mvs_phy_disconnected(struct mvs_phy *phy) static void mvs_work_queue(struct work_struct *work) { - struct delayed_work *dw = container_of(work, struct delayed_work, work); + struct delayed_work *dw = to_delayed_work(work); struct mvs_wq *mwq = container_of(dw, struct mvs_wq, work_q); struct mvs_info *mvi = mwq->mvi; unsigned long flags;