diff options
author | Thomas Huth <thuth@redhat.com> | 2018-07-19 14:46:24 +0200 |
---|---|---|
committer | Alexey Kardashevskiy <aik@ozlabs.ru> | 2018-07-20 14:55:30 +1000 |
commit | d4443f17c956e77df7bb23b2d19462faae9f4b23 (patch) | |
tree | 46de04ae86a4803f76676c54bfe0a75917529743 /include/calculatecrc.h | |
parent | 5cd96a5ba9782d6f1c2d53d02d5a265fbcae580b (diff) | |
download | SLOF-d4443f17c956e77df7bb23b2d19462faae9f4b23.zip SLOF-d4443f17c956e77df7bb23b2d19462faae9f4b23.tar.gz SLOF-d4443f17c956e77df7bb23b2d19462faae9f4b23.tar.bz2 |
romfs/tools: Remove superfluous union around the rom header struct
Accessing the struct with memset and memcpy can also be done without the
union wrapper. While we're at it, also remove the FLASHFS_HEADER_DATA_SIZE
macre and use sizeof(stHeader) instead.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Diffstat (limited to 'include/calculatecrc.h')
-rw-r--r-- | include/calculatecrc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/calculatecrc.h b/include/calculatecrc.h index a19a229..667ea81 100644 --- a/include/calculatecrc.h +++ b/include/calculatecrc.h @@ -17,7 +17,6 @@ #define FLASHFS_HEADER_SIZE_ADDR 0x08 // uint64_t position of total flash header size value #define FLASHFS_ROMADDR 0x00 // uint64_t position of pointer to next file -#define FLASHFS_HEADER_DATA_SIZE 0x68 // 104 bytes of total header data size #define CRC_METHODE Ethernet_32 // define the CRC genarator (CRC 16 bit to 64 is supported) //--- header format --------------------------------- |