OSDN Git Service

minigbm: gralloc0: Fix coding style error
authorTomasz Figa <tfiga@chromium.org>
Wed, 2 Aug 2017 10:35:40 +0000 (19:35 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 9 Aug 2017 18:48:04 +0000 (11:48 -0700)
There is a missing whitespace error in gralloc0.cc, which is
automatically corrected by some git hook, so let's fix it finally. Since
the original style issue seems to be caused by a bug in clang-format
used in ChromeOS chroot (and corrected by any other, not broken,
clang-format), just annotate the line to have clang-format bypassed.

BUG=none
TEST=compile

Change-Id: I6df1963eedc3b908d4a0abaffb2db9081eaba043
Reviewed-on: https://chromium-review.googlesource.com/597330
Commit-Ready: Tomasz Figa <tfiga@chromium.org>
Tested-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
cros_gralloc/gralloc0/gralloc0.cc

index a5c8181..533f8ca 100644 (file)
@@ -363,7 +363,9 @@ static int gralloc0_lock_async_ycbcr(struct gralloc_module_t const *module, buff
        return 0;
 }
 
-static struct hw_module_methods_t gralloc0_module_methods = {.open = gralloc0_open };
+// clang-format off
+static struct hw_module_methods_t gralloc0_module_methods = { .open = gralloc0_open };
+// clang-format on
 
 struct gralloc0_module HAL_MODULE_INFO_SYM = {
        .base =