From patchwork Wed Mar 15 10:04:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 739100 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 3vjnKM0PzSz9s0g; Wed, 15 Mar 2017 21:05:10 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1co5nm-0001hH-CV; Wed, 15 Mar 2017 10:05:06 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1co5nf-0001go-MW for fwts-devel@lists.ubuntu.com; Wed, 15 Mar 2017 10:04:59 +0000 Received: from cpc104592-craw8-2-0-cust106.16-3.cable.virginm.net ([82.33.165.107] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1co5nf-0007M5-BZ; Wed, 15 Mar 2017 10:04:59 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH] lib: fwts_devicetree.h: minor code formatting cleanups Date: Wed, 15 Mar 2017 10:04:59 +0000 Message-Id: <20170315100459.24607-1-colin.king@canonical.com> X-Mailer: git-send-email 2.10.2 MIME-Version: 1.0 X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Replace gcc attribute with FWTS_UNUSED() macro, and reformat function prototypes. Signed-off-by: Colin Ian King Acked-by: Alex Hung Acked-by: Ivan Hu --- src/lib/include/fwts_devicetree.h | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/lib/include/fwts_devicetree.h b/src/lib/include/fwts_devicetree.h index 372bdda..662f6ec 100644 --- a/src/lib/include/fwts_devicetree.h +++ b/src/lib/include/fwts_devicetree.h @@ -44,22 +44,19 @@ int fwts_devicetree_read(fwts_framework *fwts); #else /* !FWTS_HAS_DEVICETREE */ -static inline int fwts_devicetree_read(fwts_framework *fwts - __attribute__((unused))) +static inline int fwts_devicetree_read(fwts_framework *fwts) { + FWTS_UNUSED(fwts); + return FWTS_OK; } #endif bool check_status_property_okay(fwts_framework *fw, - const char *my_path, - const char *my_prop_string, - const char *property); + const char *my_path, const char *my_prop_string, const char *property); int check_property_printable(fwts_framework *fw, - const char *name, - const char *buf, - size_t len); + const char *name, const char *buf, size_t len); char *hidewhitespace(char *name);