dtbhtool: fix unused variable 'model' warning
authorStricted <info@stricted.net>
Mon, 24 Sep 2018 18:50:26 +0000 (20:50 +0200)
committerStricted <info@stricted.net>
Thu, 4 Oct 2018 09:03:35 +0000 (11:03 +0200)
Change-Id: I0ac347428d01789622487d803ae13d433240063c

dtbhtool/dtbimg.c

index cddcd29edcfa17a48bfa0358184d59144ffb82d9..f751e882fc1e3542d815e0aecc99845c0453ec39 100644 (file)
@@ -126,7 +126,9 @@ void *load_dtbh_block(const char *dtb_path, unsigned pagesize, unsigned *_sz)
     uint32_t version = DTBH_VERSION;
     unsigned blob_sz = 0;
     char fname[PATH_MAX];
+#ifdef DTBH_MODEL
     const unsigned *model;
+#endif
     const unsigned *prop_chip;
     const unsigned *prop_platform;
     const unsigned *prop_subtype;