From patchwork Fri Sep 22 10:27:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Allen X-Patchwork-Id: 9965785 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 DFF8F60381 for ; Fri, 22 Sep 2017 10:27:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D6F382984E for ; Fri, 22 Sep 2017 10:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBFAB29850; Fri, 22 Sep 2017 10:27:46 +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=-0.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS,RCVD_IN_SORBS_SPAM,RCVD_IN_SORBS_WEB,T_DKIM_INVALID autolearn=no 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 9658E2984E for ; Fri, 22 Sep 2017 10:27:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751940AbdIVK1p (ORCPT ); Fri, 22 Sep 2017 06:27:45 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36643 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751872AbdIVK1p (ORCPT ); Fri, 22 Sep 2017 06:27:45 -0400 Received: by mail-pf0-f193.google.com with SMTP id f84so295404pfj.3 for ; Fri, 22 Sep 2017 03:27:45 -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=vpPhIcU8w2hpYv70x0ptD4zOyO91+mK2N7Dp2HwUduY=; b=g840tSfyESLVA1PvUisKoQFywZFYbfG7DMPvf32s1GSLO2iOnsdOB/AAOk/UnnDFV/ X0i18Ekj5Jl+t83vWl2X+dpkZrFAOzZATCWdhgYhb+0cfd4IzVnirwJNJpnAR0jwwph1 KYgTT00Pk1BOgOGi2Z9eyoNvQyZukKJHYES5u9lz+4Rtkc2/Cjj9U8G8dbi1WY9AlNtu JToluJpdZ4esOWC/04nNhGpawtkZdPSbxg7tO+i3FZF0JOso2ROqNbj9sbCzlS/H+9mg v0DsYBre27L2rZZ78MmYnT9Dj3z7bqxI69YLMp2vBtY42ASmwa1f3QLxUdFPGjgLnomZ 9f8Q== 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=vpPhIcU8w2hpYv70x0ptD4zOyO91+mK2N7Dp2HwUduY=; b=WvhADxCg86UvWtahT223Y2yB3ZyLRS37cq+jLmddqDTXMElyzmd/0aR1szpdj6e2Ph CH70WZOP78G7X+uW/zKuF4E6JWAxR9w8jnZ5LjuoUSauGXgMfR/sYRMU4v36LqiRdWd0 ysN5pyMvTRcPUuABMReuyohLoqt7P7rhC9LQoJalKB7A/PLHudEk4uTrauHyQlxXX58O 8dnHeqfQcKr7o+NH0mi28y2wxzO9l2tbLFEVb0K9VaBI8/ne8Yvx4abM8erZzhwyEGGg XcZ8Ryqd2BiAYiVVXM2GcXW8pZ5Kgdw7gi9WcmndH9ScOaiQ8Zsu3tqI6wdLYCF2deKK 3/Ng== X-Gm-Message-State: AHPjjUiTBVlMFCGTUHouVu3CKvrifLN4B0lbBYP/kzGc/XZXo4bR6R/X d9y+3vpAOwIL7EcLIGAQbMNeDFFY X-Google-Smtp-Source: AOwi7QBkZwtSE0Y2pSAurg6vkGLttr+W3rkkPjstUi8I4/2s2XDK2+5XZ+iqIIhR3Y0nyGijnBprOg== X-Received: by 10.101.78.7 with SMTP id r7mr9049225pgt.64.1506076064426; Fri, 22 Sep 2017 03:27:44 -0700 (PDT) Received: from localhost.localdomain ([103.42.74.194]) by smtp.gmail.com with ESMTPSA id f74sm6143224pfa.36.2017.09.22.03.27.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 22 Sep 2017 03:27:43 -0700 (PDT) From: Allen Pais To: linux-rdma@vger.kernel.org Cc: dledford@redhat.com, sean.hefty@intel.com, Allen Pais Subject: [PATCH 7/8] infiniband: nes: use setup_timer() helper. Date: Fri, 22 Sep 2017 15:57:15 +0530 Message-Id: <1506076036-16496-8-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506076036-16496-1-git-send-email-allen.lkml@gmail.com> References: <1506076036-16496-1-git-send-email-allen.lkml@gmail.com> Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@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/infiniband/hw/nes/nes_cm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/nes/nes_cm.c b/drivers/infiniband/hw/nes/nes_cm.c index de4025d..b1de123 100644 --- a/drivers/infiniband/hw/nes/nes_cm.c +++ b/drivers/infiniband/hw/nes/nes_cm.c @@ -2670,8 +2670,7 @@ static struct nes_cm_core *nes_cm_alloc_core(void) return NULL; INIT_LIST_HEAD(&cm_core->connected_nodes); - init_timer(&cm_core->tcp_timer); - cm_core->tcp_timer.function = nes_cm_timer_tick; + setup_timer(&cm_core->tcp_timer, nes_cm_timer_tick, 0UL); cm_core->mtu = NES_CM_DEFAULT_MTU; cm_core->state = NES_CM_STATE_INITED;