diff mbox series

core: remove unused $TMPDIR/datasrc

Message ID 20170928110310.27606-1-christian.storm@siemens.com
State Accepted
Headers show
Series core: remove unused $TMPDIR/datasrc | expand

Commit Message

Storm, Christian Sept. 28, 2017, 11:03 a.m. UTC
$TMPDIR/DATASRC_DIR_SUFFIX (= $TMPDIR/datasrc/) is unused.
Remove it.

Signed-off-by: Christian Storm <christian.storm@siemens.com>
---
 core/swupdate.c   | 1 -
 include/globals.h | 1 -
 2 files changed, 2 deletions(-)

Comments

Stefano Babic Sept. 29, 2017, 3:25 p.m. UTC | #1
On 28/09/2017 13:03, Christian Storm wrote:
> $TMPDIR/DATASRC_DIR_SUFFIX (= $TMPDIR/datasrc/) is unused.
> Remove it.
> 
> Signed-off-by: Christian Storm <christian.storm@siemens.com>
> ---
>  core/swupdate.c   | 1 -
>  include/globals.h | 1 -
>  2 files changed, 2 deletions(-)
> 
> diff --git a/core/swupdate.c b/core/swupdate.c
> index a9c71cf..52e0a3f 100644
> --- a/core/swupdate.c
> +++ b/core/swupdate.c
> @@ -420,7 +420,6 @@ static void swupdate_init(struct swupdate_cfg *sw)
>  
>  	/* Create directories for scripts */
>  	create_directory(SCRIPTS_DIR_SUFFIX);
> -	create_directory(DATASRC_DIR_SUFFIX);
>  	create_directory(DATADST_DIR_SUFFIX);
>  
>  #ifdef CONFIG_MTD
> diff --git a/include/globals.h b/include/globals.h
> index 6e87839..124bcfb 100644
> --- a/include/globals.h
> +++ b/include/globals.h
> @@ -35,7 +35,6 @@
>  
>  /* These are fixed path to temporary files */
>  #define SCRIPTS_DIR_SUFFIX	"scripts/"
> -#define DATASRC_DIR_SUFFIX	"datasrc/"
>  #define DATADST_DIR_SUFFIX	"datadst/"
>  #define BOOT_SCRIPT_SUFFIX	"boot-script"
>  
> 

Acked-by: Stefano Babic <sbabic@denx.de>

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/core/swupdate.c b/core/swupdate.c
index a9c71cf..52e0a3f 100644
--- a/core/swupdate.c
+++ b/core/swupdate.c
@@ -420,7 +420,6 @@  static void swupdate_init(struct swupdate_cfg *sw)
 
 	/* Create directories for scripts */
 	create_directory(SCRIPTS_DIR_SUFFIX);
-	create_directory(DATASRC_DIR_SUFFIX);
 	create_directory(DATADST_DIR_SUFFIX);
 
 #ifdef CONFIG_MTD
diff --git a/include/globals.h b/include/globals.h
index 6e87839..124bcfb 100644
--- a/include/globals.h
+++ b/include/globals.h
@@ -35,7 +35,6 @@ 
 
 /* These are fixed path to temporary files */
 #define SCRIPTS_DIR_SUFFIX	"scripts/"
-#define DATASRC_DIR_SUFFIX	"datasrc/"
 #define DATADST_DIR_SUFFIX	"datadst/"
 #define BOOT_SCRIPT_SUFFIX	"boot-script"