From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752148AbdIVLQ4 (ORCPT ); Fri, 22 Sep 2017 07:16:56 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:37022 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752111AbdIVLQw (ORCPT ); Fri, 22 Sep 2017 07:16:52 -0400 X-Google-Smtp-Source: AOwi7QACl9LUWRy0nPptRdJciO8bQx12QUWGB5hH6/ucUNHpn/RuoID65wdSuj9P0u6k97uCEoi6Lw== From: Allen Pais To: linux-kernel@vger.kernel.org Cc: ed.cashin@acm.org, Allen Pais Subject: [PATCH 2/5] block: aoe: use setup_timer() helper. Date: Fri, 22 Sep 2017 16:46:36 +0530 Message-Id: <1506078999-4723-3-git-send-email-allen.lkml@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506078999-4723-1-git-send-email-allen.lkml@gmail.com> References: <1506078999-4723-1-git-send-email-allen.lkml@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use setup_timer function instead of initializing timer with the function and data fields. Signed-off-by: Allen Pais --- drivers/block/aoe/aoemain.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/block/aoe/aoemain.c b/drivers/block/aoe/aoemain.c index 4b987c2..20865d4 100644 --- a/drivers/block/aoe/aoemain.c +++ b/drivers/block/aoe/aoemain.c @@ -28,10 +28,8 @@ discover_timer(ulong vp) switch (vp) { case TINIT: - init_timer(&t); + setup_timer(&t, discover_timer, TRUN); spin_lock_init(&lock); - t.data = TRUN; - t.function = discover_timer; die = 0; case TRUN: spin_lock_irqsave(&lock, flags); -- 2.7.4