From 0d214ced90e31cf4acafd77589e5fb2f1ab2b561 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Thu, 19 Oct 2017 09:33:24 +0200 Subject: [PATCH] tests: line: coding style fix Put local variables in correct order - from longest to shortest lines. Signed-off-by: Bartosz Golaszewski --- tests/tests-line.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/tests-line.c b/tests/tests-line.c index c3b5488..86ebc96 100644 --- a/tests/tests-line.c +++ b/tests/tests-line.c @@ -122,6 +122,8 @@ static void line_request_bulk_output(void) { TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipA = NULL; TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipB = NULL; + struct gpiod_line_bulk bulkB = GPIOD_LINE_BULK_INITIALIZER; + struct gpiod_line_bulk bulkA; struct gpiod_line *lineA0; struct gpiod_line *lineA1; struct gpiod_line *lineA2; @@ -130,10 +132,8 @@ static void line_request_bulk_output(void) struct gpiod_line *lineB1; struct gpiod_line *lineB2; struct gpiod_line *lineB3; - struct gpiod_line_bulk bulkA; - struct gpiod_line_bulk bulkB = GPIOD_LINE_BULK_INITIALIZER; - int status; int valA[4], valB[4]; + int status; chipA = gpiod_chip_open(test_chip_path(0)); chipB = gpiod_chip_open(test_chip_path(1)); @@ -212,11 +212,11 @@ static void line_request_bulk_different_chips(void) TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipA = NULL; TEST_CLEANUP(test_close_chip) struct gpiod_chip *chipB = NULL; struct gpiod_line_request_config req; + struct gpiod_line_bulk bulk; struct gpiod_line *lineA0; struct gpiod_line *lineA1; struct gpiod_line *lineB0; struct gpiod_line *lineB1; - struct gpiod_line_bulk bulk; int status; chipA = gpiod_chip_open(test_chip_path(0)); -- 2.30.2