diff options
Diffstat (limited to 'scripts')
37 files changed, 6 insertions, 121 deletions
diff --git a/scripts/bareboxcrc32.c b/scripts/bareboxcrc32.c index 1b105a452b..409e1cbba3 100644 --- a/scripts/bareboxcrc32.c +++ b/scripts/bareboxcrc32.c @@ -3,9 +3,6 @@ * * Copyright (c) 2013 Michael Grzeschik <mgr@pengutronix.de> * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. diff --git a/scripts/bareboxenv.c b/scripts/bareboxenv.c index d1cf33a4d9..3c743435fe 100644 --- a/scripts/bareboxenv.c +++ b/scripts/bareboxenv.c @@ -3,9 +3,6 @@ * * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 * as published by the Free Software Foundation. diff --git a/scripts/bareboximd.c b/scripts/bareboximd.c index b332d435a6..48c3e8ab3f 100644 --- a/scripts/bareboximd.c +++ b/scripts/bareboximd.c @@ -1,9 +1,6 @@ /* * (C) Copyright 2014 Sascha Hauer, Pengutronix * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of @@ -56,7 +53,7 @@ int imd_command_setenv(const char *variable_name, const char *value) static int write_file(const char *filename, const void *buf, size_t size) { - int fd, ret; + int fd, ret = 0; int now; fd = open(filename, O_WRONLY | O_TRUNC | O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); @@ -65,22 +62,18 @@ static int write_file(const char *filename, const void *buf, size_t size) while (size) { now = write(fd, buf, size); - if (now == 0) { - errno = ENOSPC; - return -1; + if (now < 0) { + ret = now; + goto out; } - if (now < 0) - return now; size -= now; buf += now; } +out: close(fd); - if (ret < 0) - return ret; - - return 0; + return ret; } static int read_file_2(const char *filename, size_t *size, void **outbuf, size_t max_size) diff --git a/scripts/imx/imx-image.c b/scripts/imx/imx-image.c index c39ceda839..ec7444a772 100644 --- a/scripts/imx/imx-image.c +++ b/scripts/imx/imx-image.c @@ -1,9 +1,6 @@ /* * (C) Copyright 2013 Sascha Hauer, Pengutronix * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of diff --git a/scripts/imx/imx.c b/scripts/imx/imx.c index c820c9a0c8..ea576c22d3 100644 --- a/scripts/imx/imx.c +++ b/scripts/imx/imx.c @@ -1,9 +1,6 @@ /* * (C) Copyright 2016 Sascha Hauer, Pengutronix * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of diff --git a/scripts/s5p_cksum.c b/scripts/s5p_cksum.c index 06f51e3607..29cf539a28 100644 --- a/scripts/s5p_cksum.c +++ b/scripts/s5p_cksum.c @@ -1,9 +1,6 @@ /* * Copyright (C) 2012 Alexey Galakhov * - * See file CREDITS for list of people who contributed to this - * project. - * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * version 2 as published by the Free Software Foundation. diff --git a/scripts/tegra/aes_ref.c b/scripts/tegra/aes_ref.c index 4ae110f996..2258311b03 100644 --- a/scripts/tegra/aes_ref.c +++ b/scripts/tegra/aes_ref.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* advanced encryption standard diff --git a/scripts/tegra/bct_dump.c b/scripts/tegra/bct_dump.c index dbef91382c..74f4d595e0 100644 --- a/scripts/tegra/bct_dump.c +++ b/scripts/tegra/bct_dump.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "cbootimage.h" diff --git a/scripts/tegra/cbootimage.c b/scripts/tegra/cbootimage.c index 89682eb8b9..d64f322f11 100644 --- a/scripts/tegra/cbootimage.c +++ b/scripts/tegra/cbootimage.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/cbootimage.h b/scripts/tegra/cbootimage.h index 46e3b8b3b7..04d1a8b274 100644 --- a/scripts/tegra/cbootimage.h +++ b/scripts/tegra/cbootimage.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/context.c b/scripts/tegra/context.c index 25b322f41b..9d2fb27dc9 100644 --- a/scripts/tegra/context.c +++ b/scripts/tegra/context.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "cbootimage.h" diff --git a/scripts/tegra/context.h b/scripts/tegra/context.h index 6e724718b6..bdfa25b451 100644 --- a/scripts/tegra/context.h +++ b/scripts/tegra/context.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #ifndef INCLUDED_CONTEXT_H diff --git a/scripts/tegra/crypto.c b/scripts/tegra/crypto.c index e88a255b25..e40f56e474 100644 --- a/scripts/tegra/crypto.c +++ b/scripts/tegra/crypto.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/crypto.h b/scripts/tegra/crypto.h index d7151e0cd1..2220ac8367 100644 --- a/scripts/tegra/crypto.h +++ b/scripts/tegra/crypto.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/data_layout.c b/scripts/tegra/data_layout.c index ba3361ae65..99ae8d92c8 100644 --- a/scripts/tegra/data_layout.c +++ b/scripts/tegra/data_layout.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/data_layout.h b/scripts/tegra/data_layout.h index 9ee8267a62..c708da4a15 100644 --- a/scripts/tegra/data_layout.h +++ b/scripts/tegra/data_layout.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/nvaes_ref.h b/scripts/tegra/nvaes_ref.h index 76bd6c3a96..1d06e71903 100644 --- a/scripts/tegra/nvaes_ref.h +++ b/scripts/tegra/nvaes_ref.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "cbootimage.h" diff --git a/scripts/tegra/parse.c b/scripts/tegra/parse.c index 464ee8ff40..9180adfda3 100644 --- a/scripts/tegra/parse.c +++ b/scripts/tegra/parse.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/parse.h b/scripts/tegra/parse.h index 80f42c4269..7402a1dd98 100644 --- a/scripts/tegra/parse.h +++ b/scripts/tegra/parse.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/set.c b/scripts/tegra/set.c index 91269fc96f..1c5e8dda8c 100644 --- a/scripts/tegra/set.c +++ b/scripts/tegra/set.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/set.h b/scripts/tegra/set.h index 1515fcd740..7e7245aaf4 100644 --- a/scripts/tegra/set.h +++ b/scripts/tegra/set.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/t114/nvbctlib_t114.c b/scripts/tegra/t114/nvbctlib_t114.c index f7e449aceb..063882a905 100644 --- a/scripts/tegra/t114/nvbctlib_t114.c +++ b/scripts/tegra/t114/nvbctlib_t114.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "../cbootimage.h" diff --git a/scripts/tegra/t114/nvboot_bct_t114.h b/scripts/tegra/t114/nvboot_bct_t114.h index e42d14917c..a2a6b865f6 100644 --- a/scripts/tegra/t114/nvboot_bct_t114.h +++ b/scripts/tegra/t114/nvboot_bct_t114.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #ifndef INCLUDED_NVBOOT_BCT_T114_H diff --git a/scripts/tegra/t114/nvboot_sdram_param_t114.h b/scripts/tegra/t114/nvboot_sdram_param_t114.h index 85b758fd74..78151dcfb8 100644 --- a/scripts/tegra/t114/nvboot_sdram_param_t114.h +++ b/scripts/tegra/t114/nvboot_sdram_param_t114.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /** diff --git a/scripts/tegra/t114/parse_t114.c b/scripts/tegra/t114/parse_t114.c index 17f612e8c8..79c2ed8f53 100644 --- a/scripts/tegra/t114/parse_t114.c +++ b/scripts/tegra/t114/parse_t114.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/t124/nvbctlib_t124.c b/scripts/tegra/t124/nvbctlib_t124.c index 27e5a628af..ab2d925570 100644 --- a/scripts/tegra/t124/nvbctlib_t124.c +++ b/scripts/tegra/t124/nvbctlib_t124.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "../cbootimage.h" diff --git a/scripts/tegra/t124/nvboot_bct_t124.h b/scripts/tegra/t124/nvboot_bct_t124.h index 8f4b966c00..bc07add3db 100644 --- a/scripts/tegra/t124/nvboot_bct_t124.h +++ b/scripts/tegra/t124/nvboot_bct_t124.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #ifndef INCLUDED_NVBOOT_BCT_T124_H diff --git a/scripts/tegra/t124/nvboot_sdram_param_t124.h b/scripts/tegra/t124/nvboot_sdram_param_t124.h index 34f537eb51..bae40b1353 100644 --- a/scripts/tegra/t124/nvboot_sdram_param_t124.h +++ b/scripts/tegra/t124/nvboot_sdram_param_t124.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /** diff --git a/scripts/tegra/t124/parse_t124.c b/scripts/tegra/t124/parse_t124.c index 0d80867eea..8468209b61 100644 --- a/scripts/tegra/t124/parse_t124.c +++ b/scripts/tegra/t124/parse_t124.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/t20/nvbctlib_t20.c b/scripts/tegra/t20/nvbctlib_t20.c index c145d6da95..5386b285d6 100644 --- a/scripts/tegra/t20/nvbctlib_t20.c +++ b/scripts/tegra/t20/nvbctlib_t20.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "../cbootimage.h" diff --git a/scripts/tegra/t20/nvboot_bct_t20.h b/scripts/tegra/t20/nvboot_bct_t20.h index 8585cdb543..bf94d50b40 100644 --- a/scripts/tegra/t20/nvboot_bct_t20.h +++ b/scripts/tegra/t20/nvboot_bct_t20.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #ifndef INCLUDED_NVBOOT_BCT_T20_H diff --git a/scripts/tegra/t20/nvboot_sdram_param_t20.h b/scripts/tegra/t20/nvboot_sdram_param_t20.h index 2c385d5e5e..de002f0c38 100644 --- a/scripts/tegra/t20/nvboot_sdram_param_t20.h +++ b/scripts/tegra/t20/nvboot_sdram_param_t20.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /** diff --git a/scripts/tegra/t20/parse_t20.c b/scripts/tegra/t20/parse_t20.c index 503257547b..5db74d5597 100644 --- a/scripts/tegra/t20/parse_t20.c +++ b/scripts/tegra/t20/parse_t20.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* diff --git a/scripts/tegra/t30/nvbctlib_t30.c b/scripts/tegra/t30/nvbctlib_t30.c index 59b0246fbf..e55b0dfb98 100644 --- a/scripts/tegra/t30/nvbctlib_t30.c +++ b/scripts/tegra/t30/nvbctlib_t30.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #include "../cbootimage.h" diff --git a/scripts/tegra/t30/nvboot_bct_t30.h b/scripts/tegra/t30/nvboot_bct_t30.h index 39c998e202..c5fee4c0a2 100644 --- a/scripts/tegra/t30/nvboot_bct_t30.h +++ b/scripts/tegra/t30/nvboot_bct_t30.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ #ifndef INCLUDED_NVBOOT_BCT_T30_H diff --git a/scripts/tegra/t30/nvboot_sdram_param_t30.h b/scripts/tegra/t30/nvboot_sdram_param_t30.h index 18d77d7139..24c176858f 100644 --- a/scripts/tegra/t30/nvboot_sdram_param_t30.h +++ b/scripts/tegra/t30/nvboot_sdram_param_t30.h @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /** diff --git a/scripts/tegra/t30/parse_t30.c b/scripts/tegra/t30/parse_t30.c index 4715f39f57..e5f4e93b28 100644 --- a/scripts/tegra/t30/parse_t30.c +++ b/scripts/tegra/t30/parse_t30.c @@ -12,9 +12,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * - * See file CREDITS for list of people who contributed to this - * project. */ /* |