]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
installer: Remove unused variables
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 5 Apr 2024 12:59:36 +0000 (12:59 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 19 Apr 2024 06:04:25 +0000 (06:04 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/installer/hw.c

index f05608fd1f0276213100c870495ef8d84ba47415..039f8ac26181ceef1daae2492929fe7e1986978b 100644 (file)
@@ -131,8 +131,6 @@ static int strstartswith(const char* a, const char* b) {
        return (strncmp(a, b, strlen(b)) == 0);
 }
 
-static char loop_device[STRING_SIZE];
-
 static int setup_loop_device(const char* source, const char* device) {
        int file_fd = open(source, O_RDWR);
        if (file_fd < 0)
@@ -1184,7 +1182,6 @@ static int hw_umount_btrfs_layout() {
 
 int hw_umount_filesystems(struct hw_destination* dest, const char* prefix) {
        int r;
-       char target[STRING_SIZE];
 
        // Write all buffers to disk before umounting
        hw_sync();