From patchwork Thu Oct 25 14:57:50 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Cox X-Patchwork-Id: 1644741 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 24EB93FC36 for ; Thu, 25 Oct 2012 14:56:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933227Ab2JYO4R (ORCPT ); Thu, 25 Oct 2012 10:56:17 -0400 Received: from lxorguk.ukuu.org.uk ([81.2.110.251]:53826 "EHLO lxorguk.ukuu.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933068Ab2JYO4Q (ORCPT ); Thu, 25 Oct 2012 10:56:16 -0400 Received: from localhost.localdomain (earthlight.etchedpixels.co.uk [81.2.110.250]) by lxorguk.ukuu.org.uk (8.14.5/8.14.1) with ESMTP id q9PFSCDL007159; Thu, 25 Oct 2012 16:28:18 +0100 From: Alan Cox Subject: [PATCH] acpi: compare of array To: lenb@linux.intel.com, linux-acpi@vger.kernel.org Date: Thu, 25 Oct 2012 15:57:50 +0100 Message-ID: <20121025145746.17558.59853.stgit@localhost.localdomain> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: Alan Cox This serves no purpose as it's an array not a pointer Signed-off-by: Alan Cox --- drivers/acpi/event.c | 3 +-- 1 file changed, 1 insertion(+), 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 diff --git a/drivers/acpi/event.c b/drivers/acpi/event.c index 1442737..f84df83 100644 --- a/drivers/acpi/event.c +++ b/drivers/acpi/event.c @@ -67,8 +67,7 @@ acpi_system_read_event(struct file *file, char __user * buffer, size_t count, return result; chars_remaining = sprintf(str, "%s %s %08x %08x\n", - event.device_class ? event. - device_class : "", + event.device_class : "", event.bus_id ? event. bus_id : "", event.type, event.data);