From patchwork Tue Sep 11 13:10:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Feng Tang X-Patchwork-Id: 1437961 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 22E22DFAF3 for ; Tue, 11 Sep 2012 13:16:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754540Ab2IKNQ0 (ORCPT ); Tue, 11 Sep 2012 09:16:26 -0400 Received: from mga09.intel.com ([134.134.136.24]:45625 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754149Ab2IKNQY (ORCPT ); Tue, 11 Sep 2012 09:16:24 -0400 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP; 11 Sep 2012 06:16:16 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.80,404,1344236400"; d="scan'208";a="201506812" Received: from feng-i7.sh.intel.com ([10.239.14.125]) by orsmga002.jf.intel.com with ESMTP; 11 Sep 2012 06:16:22 -0700 From: Feng Tang To: Len Brown , Len Brown , linux-acpi@vger.kernel.org Cc: Alexey Starikovskiy , Thomas Renninger , Bob Moore , Feng Tang Subject: [PATCH 4/5] ACPI: Remove the useless check in osl.c Date: Tue, 11 Sep 2012 21:10:21 +0800 Message-Id: <1347369022-10176-4-git-send-email-feng.tang@intel.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1347369022-10176-1-git-send-email-feng.tang@intel.com> References: <1347369022-10176-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 files changed, 1 insertions(+), 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