diff options
author | Simon Glass <sjg@chromium.org> | 2019-11-14 12:57:15 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-12-02 18:23:07 -0500 |
commit | b2ea91ba57a2c3d57ec3d681b4058b115a0d3e51 (patch) | |
tree | 44c2fd025d4e7d1fe352866bdfc1a21363191e7c /tools/envcrc.c | |
parent | c3a4d1c3ee1f528a62e0de55ed034fa6d23c0add (diff) |
crc: Fix code style with crc functions
Some of these have a space before the bracket. Drop it to fix the style.
Add some missing function comments while here.
Note that u32 and u8 cannot be used here since crc.h is included on the
host side.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'tools/envcrc.c')
-rw-r--r-- | tools/envcrc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/envcrc.c b/tools/envcrc.c index 4b3b828af0..6e43608027 100644 --- a/tools/envcrc.c +++ b/tools/envcrc.c @@ -58,7 +58,7 @@ extern unsigned int env_size; extern env_t embedded_environment; #endif /* CONFIG_BUILD_ENVCRC */ -extern uint32_t crc32 (uint32_t, const unsigned char *, unsigned int); +extern uint32_t crc32(uint32_t, const unsigned char *, unsigned int); int main (int argc, char **argv) { @@ -88,7 +88,7 @@ int main (int argc, char **argv) memset(dataptr + eoe, pad, datasize - eoe); } - crc = crc32 (0, dataptr, datasize); + crc = crc32(0, dataptr, datasize); /* Check if verbose mode is activated passing a parameter to the program */ if (argc > 1) { |