From patchwork Thu Jan 29 14:35:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivan Khoronzhuk X-Patchwork-Id: 43939 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BE28824119 for ; Thu, 29 Jan 2015 14:35:25 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id b6sf20643178lbj.0 for ; Thu, 29 Jan 2015 06:35:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=MBaAPAbz8Ocxt0O4okr8WEerhelIJb8UniG5qCxg62I=; b=C3fd6T30QgqAptJHbXhUa26bAV41xTk29OcASV0n/ba9uiRWniXLVCDkOq229rOqly IVUQN11rGtPlyD8lm90Kj/S1UTFq+3j0yp3iybRA/gKFz6rOXUob3oTgHvUZJAaZMvOp 51b3g88yotfrwYpzWOJJsSpdv/daKxrPeLsVmVtkNJINx0kpua7rA0lQ3dLfj/vdpMX2 3dW8OoPH78sSwR4KqJK7EXdTVlqLDlj0WD4JjdIg13UDWdlefPcpyinKngOXP5UKbjp5 lGhlelllnjIyHij9gSTrZj+3AulrMObHlBfS1EOQrTCj7kuRuH+bPMCQLRam+JZcsHMI /fQQ== X-Gm-Message-State: ALoCoQkonrssqiuzoSnleFde7JPuNTslkYsmiyrvApiVWX5QkT2NoBOVts38l7FHxJMYyxq2YhPq X-Received: by 10.112.37.72 with SMTP id w8mr142415lbj.6.1422542124670; Thu, 29 Jan 2015 06:35:24 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.97 with SMTP id r1ls309152lar.81.gmail; Thu, 29 Jan 2015 06:35:24 -0800 (PST) X-Received: by 10.112.220.36 with SMTP id pt4mr1059018lbc.15.1422542124493; Thu, 29 Jan 2015 06:35:24 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id r3si7624862lbo.9.2015.01.29.06.35.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 29 Jan 2015 06:35:24 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id p9so28761404lbv.4 for ; Thu, 29 Jan 2015 06:35:24 -0800 (PST) X-Received: by 10.152.182.235 with SMTP id eh11mr1111526lac.9.1422542124365; Thu, 29 Jan 2015 06:35:24 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.35.133 with SMTP id h5csp1782009lbj; Thu, 29 Jan 2015 06:35:23 -0800 (PST) X-Received: by 10.70.92.200 with SMTP id co8mr999141pdb.101.1422542121876; Thu, 29 Jan 2015 06:35:21 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bo8si10199237pdb.47.2015.01.29.06.35.20; Thu, 29 Jan 2015 06:35:21 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753219AbbA2OfP (ORCPT + 29 others); Thu, 29 Jan 2015 09:35:15 -0500 Received: from mail-lb0-f179.google.com ([209.85.217.179]:61527 "EHLO mail-lb0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752439AbbA2OfN (ORCPT ); Thu, 29 Jan 2015 09:35:13 -0500 Received: by mail-lb0-f179.google.com with SMTP id 10so28654666lbg.10 for ; Thu, 29 Jan 2015 06:35:11 -0800 (PST) X-Received: by 10.112.217.68 with SMTP id ow4mr971212lbc.97.1422542111822; Thu, 29 Jan 2015 06:35:11 -0800 (PST) Received: from khorivan.itg.ti.com (205-148-93-178.pool.ukrtel.net. [178.93.148.205]) by mx.google.com with ESMTPSA id 5sm896800lau.42.2015.01.29.06.35.09 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Jan 2015 06:35:11 -0800 (PST) From: Ivan Khoronzhuk To: matt.fleming@intel.com, linux-efi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Ivan Khoronzhuk Subject: [PATCH] firmware: efi: remove unneeded guid unparse Date: Thu, 29 Jan 2015 16:35:02 +0200 Message-Id: <1422542102-19348-1-git-send-email-ivan.khoronzhuk@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ivan.khoronzhuk@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , There is no reason to translate guid number to string here. So remove it in order to not do unneeded work. Signed-off-by: Ivan Khoronzhuk --- drivers/firmware/efi/efi.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 9035c1b..f6be017 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -272,15 +272,10 @@ static __init int match_config_table(efi_guid_t *guid, unsigned long table, efi_config_table_type_t *table_types) { - u8 str[EFI_VARIABLE_GUID_LEN + 1]; int i; if (table_types) { - efi_guid_unparse(guid, str); - for (i = 0; efi_guidcmp(table_types[i].guid, NULL_GUID); i++) { - efi_guid_unparse(&table_types[i].guid, str); - if (!efi_guidcmp(*guid, table_types[i].guid)) { *(table_types[i].ptr) = table; pr_cont(" %s=0x%lx ",