]> git.sur5r.net Git - u-boot/blobdiff - lib/lz4_wrapper.c
tpm: add TPM2_Startup command support
[u-boot] / lib / lz4_wrapper.c
index 0739663fca55fcbf4def101c6322bfd9bd51f096..487d39ef0247a9b7f086561e0170719048b72a5c 100644 (file)
@@ -1,7 +1,6 @@
+// SPDX-License-Identifier: GPL 2.0+ OR BSD-3-Clause
 /*
  * Copyright 2015 Google Inc.
- *
- * SPDX-License-Identifier: GPL 2.0+ BSD-3-Clause
  */
 
 #include <common.h>
@@ -94,7 +93,9 @@ int ulz4fn(const void *src, size_t srcn, void *dst, size_t *dstn)
        }
 
        while (1) {
-               struct lz4_block_header b = { .raw = le32_to_cpu(*(u32 *)in) };
+               struct lz4_block_header b;
+
+               b.raw = le32_to_cpu(*(u32 *)in);
                in += sizeof(struct lz4_block_header);
 
                if (in - src + b.size > srcn) {