Message ID | 20170928110310.27606-1-christian.storm@siemens.com |
---|---|
State | Accepted |
Headers | show |
Series | core: remove unused $TMPDIR/datasrc | expand |
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 --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"
$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(-)