From patchwork Fri Sep 22 09:51:43 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965721 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D43E2600C5 for ; Fri, 22 Sep 2017 09:52:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D095D2982C for ; Fri, 22 Sep 2017 09:52:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C579829845; Fri, 22 Sep 2017 09:52:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F5502982C for ; Fri, 22 Sep 2017 09:52:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752296AbdIVJwv (ORCPT ); Fri, 22 Sep 2017 05:52:51 -0400 Received: from mail-pg0-f65.google.com ([74.125.83.65]:37893 "EHLO mail-pg0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752291AbdIVJwq (ORCPT ); Fri, 22 Sep 2017 05:52:46 -0400 Received: by mail-pg0-f65.google.com with SMTP id m30so360120pgn.5 for ; Fri, 22 Sep 2017 02:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2Rk163O37IyQ0ysjIX0XD/mwO/XE9gdBukvPl1mbIh8=; b=QQ4RCxEeCPYIXMZ3lBpg7NsjPpwnFo5+ATILFUzLOU6ThsKAA1N7LUFnlDIH+3K1lo lauB5M8o+K4bz29GIH/L9kya2msBm1qONDmmZe5LsaGfQS2BvXlUliwlydrB5RIewTVF jWCcgryCmOxX/J7y58hryuXjd+S1AbYPPF3Ha0zO5XCSME3lM9sbquJNjWnh790u4wIv U9+OdkhzN55bJVbbqMMgX2a0hm2wUOMH5bpR+ILUO1wIRHncdGim+QKTfWcqCwONTuGq zN3b40YkyvfsrJctr4W2jWE8tl6I9nAAAN+TgX0B+smlt+Aq8bMuz7jU+oNpnVs16vLr +Ung== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=2Rk163O37IyQ0ysjIX0XD/mwO/XE9gdBukvPl1mbIh8=; b=K9siXCv5Ab6l3vzcYLlIJuvZjk/wiIHqMj0q+3OqtfrRD9NGAXXQIKr7QkPWgUaAGl iTApYrDNvv0gvn/1pWcQ22nji99ljBUmH7QRQv6GULv0WcvPjqa38HaMk+JVnoh9fPpb LRVo/7TcM5EV6grshcvIa94vSaU3WZilpIi4xqzu+HqLiNAbmd9RSlpPVd7yHb6KbJsD 0y0tB4YrvhvX90pFcdKMNf8XH0wnuB+vZClz2rDrFfjo9vClrZ3NwibN6nyHfhmflejE M9c8yzlaVClIMo0R15+Ps1t0/PpXxJNFhm7ueKZlViRbFME9NZm3YWlZdfAyOou2cGrJ sBjw== X-Gm-Message-State: AHPjjUi7evTiciQqSgg6JCzy9ayHEKBvOGbqoZwfGTVduqHk4TDyKqyg ed/cN1JJn4soNOPKpvIByCwSN+4j X-Google-Smtp-Source: AOwi7QBI5qmvPqklDBVa31VtukXiLPEC/E1yUNr65Ib18B7JE05F620VW7Wn3us89XsmtN412yYvnA== X-Received: by 10.99.100.131 with SMTP id y125mr8788987pgb.161.1506073965450; Fri, 22 Sep 2017 02:52:45 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id k13sm5611977pgo.51.2017.09.22.02.52.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 02:52:44 -0700 (PDT) From: Allen Pais To: linux-scsi@vger.kernel.org Cc: jejb@linux.vnet.ibm.com, martin.petersen@oracle.com, linux@armlinux.org.uk, oliver@neukum.org, aliakc@web.de, lenehan@twibble.org, lduncan@suse.com, cleech@redhat.com, matthew@wil.cx, Allen Pais Subject: [PATCH 11/13] scsi: dc395x: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:21:43 +0530 Message-Id: <1506073905-12985-12-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506073905-12985-1-git-send-email-allen.lkml@gmail.com> References: <1506073905-12985-1-git-send-email-allen.lkml@gmail.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/scsi/dc395x.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/dc395x.c b/drivers/scsi/dc395x.c index 5ee7f44..f9aaa8b 100644 --- a/drivers/scsi/dc395x.c +++ b/drivers/scsi/dc395x.c @@ -857,9 +857,7 @@ static void waiting_set_timer(struct AdapterCtlBlk *acb, unsigned long to) { if (timer_pending(&acb->waiting_timer)) return; - init_timer(&acb->waiting_timer); - acb->waiting_timer.function = waiting_timeout; - acb->waiting_timer.data = (unsigned long) acb; + setup_timer(&acb->waiting_timer, waiting_timeout, (unsigned long)acb); if (time_before(jiffies + to, acb->last_reset - HZ / 2)) acb->waiting_timer.expires = acb->last_reset - HZ / 2 + 1;