From patchwork Tue Oct 30 01:52:40 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Tang X-Patchwork-Id: 1660481 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 37FF1DFABE for ; Mon, 29 Oct 2012 01:54:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756261Ab2J2ByA (ORCPT ); Sun, 28 Oct 2012 21:54:00 -0400 Received: from mga09.intel.com ([134.134.136.24]:32579 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753504Ab2J2Bx7 (ORCPT ); Sun, 28 Oct 2012 21:53:59 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 28 Oct 2012 18:53:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,668,1344236400"; d="scan'208";a="233853426" Received: from feng-snb.sh.intel.com ([10.239.67.49]) by orsmga002.jf.intel.com with ESMTP; 28 Oct 2012 18:53:57 -0700 From: Feng Tang To: Len Brown , "Rafael J. Wysocki" , linux-acpi@vger.kernel.org Cc: Feng Tang Subject: [PATCH 3/4] ACPI: Remove the useless check in osl.c Date: Tue, 30 Oct 2012 09:52:40 +0800 Message-Id: <1351561961-23821-3-git-send-email-feng.tang@intel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1351561961-23821-1-git-send-email-feng.tang@intel.com> References: <1351561961-23821-1-git-send-email-feng.tang@intel.com> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org Signed-off-by: Feng Tang --- drivers/acpi/osl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 9eaf708..e76a7f5 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -949,12 +949,7 @@ static acpi_status __acpi_os_execute(acpi_execute_type type, (type == OSL_NOTIFY_HANDLER ? kacpi_notify_wq : kacpid_wq); dpc->wait = hp ? 1 : 0; - if (queue == kacpi_hotplug_wq) - INIT_WORK(&dpc->work, acpi_os_execute_deferred); - else if (queue == kacpi_notify_wq) - INIT_WORK(&dpc->work, acpi_os_execute_deferred); - else - INIT_WORK(&dpc->work, acpi_os_execute_deferred); + INIT_WORK(&dpc->work, acpi_os_execute_deferred); /* * On some machines, a software-initiated SMI causes corruption unless