From patchwork Tue Apr 26 08:29:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Rui X-Patchwork-Id: 731862 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p3Q8Wl29001630 for ; Tue, 26 Apr 2011 08:32:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751174Ab1DZIcr (ORCPT ); Tue, 26 Apr 2011 04:32:47 -0400 Received: from mga03.intel.com ([143.182.124.21]:4372 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953Ab1DZIcq (ORCPT ); Tue, 26 Apr 2011 04:32:46 -0400 Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 26 Apr 2011 01:32:46 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.64,267,1301900400"; d="scan'208";a="425546283" Received: from rui.sh.intel.com (HELO [10.239.36.62]) ([10.239.36.62]) by azsmga001.ch.intel.com with ESMTP; 26 Apr 2011 01:32:44 -0700 Subject: [PATCH 1/2] ACPI EC: remove redundant code From: Zhang Rui To: "Brown, Len" Cc: "linux-acpi@vger.kernel.org" , "Zhang, Rui" Date: Tue, 26 Apr 2011 16:29:55 +0800 Message-ID: <1303806595.28018.10.camel@rui> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Tue, 26 Apr 2011 08:32:48 +0000 (UTC) ec->handle is set in ec_parse_device(), so don't bother to set it again. Signed-off-by: Zhang Rui --- drivers/acpi/ec.c | 2 -- 1 file changed, 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: linux-2.6/drivers/acpi/ec.c =================================================================== --- linux-2.6.orig/drivers/acpi/ec.c +++ linux-2.6/drivers/acpi/ec.c @@ -808,8 +808,6 @@ static int acpi_ec_add(struct acpi_devic return -EINVAL; } - ec->handle = device->handle; - /* Find and register all query methods */ acpi_walk_namespace(ACPI_TYPE_METHOD, ec->handle, 1, acpi_ec_register_query_methods, NULL, ec, NULL);