From patchwork Thu Oct 26 07:18:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Herbrechtsmeier X-Patchwork-Id: 830481 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:400c:c0c::23a; helo=mail-wr0-x23a.google.com; envelope-from=swupdate+bncbdn7dbh5yqibbfezy3hqkgqeamr53za@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="BIFjRXl1"; dkim-atps=neutral Received: from mail-wr0-x23a.google.com (mail-wr0-x23a.google.com [IPv6:2a00:1450:400c:c0c::23a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yMz0l5wJPz9t3n for ; Thu, 26 Oct 2017 18:19:51 +1100 (AEDT) Received: by mail-wr0-x23a.google.com with SMTP id f27sf1176465wra.9 for ; Thu, 26 Oct 2017 00:19:51 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1509002388; cv=pass; d=google.com; s=arc-20160816; b=kJsc/LSgnmR2K+nojPD2eL0zKXHwTIzEi/nPSgOxDuzCfK5bGAgW85X6kbI1sdbSyk RpDaNyVZwd9yzlCGpdoIqh2PUMX5SnWhvYQWfbyW60tofo7XJbivzgVOnnjrHcP40axc FuHpTT+EYGkDlQDi4jGZC8ACN8ML8n1BvC/XzT+k42UQ+WQtuzK2Zkk+zPPec6EsifhX RjJWoqidnfEoBbSAyhDDDxEMH1TALOcppSKceqaXzPuEuEEUp0eYbHNmW4r86/9gFERS wqdvNwAByfcmGLdAq+fq4Za22py3kFQyXrWPSdstztgpySijRKsbRqs5L/oKgyAEqizB Iwkw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:message-id:date:subject:cc:to:from :arc-authentication-results:arc-message-signature:mime-version :sender:dkim-signature:arc-authentication-results; bh=Xdn/sXGA1Y1GbxykPRspWTSicqCzOtNnPB01u9ySqGU=; b=Y5QLOmh15Zj8cAiAQREODokFmlVEw/7x/Wcm4ikRJntcfWziIRMa21qeCLHIlJXfVX qADBIwEGBNGz35REtUkRZ2DlIr4PqebeVTcrxdeDJzpSnw3pKW6RZujJnNzPIXUTbTuB P+bMX35sKjSi81eSFx7EMGGYAHk9rNldN9L2G7T8GKCTzrV8PDFrdqVBA634zvUGe69g gRqUVyrx9w2xrVyNLQD/NAiIn9yPh7TXe3HFTbLD68FWefI9LlGZZDY1voDUlgxmfoJ4 NGJzGAHWsVTS3C6QaO510TfOcgYoFB2ZXGLORsm0eHmDGBxBLAIZghbD/ZYxzUxzSOZV 6gMw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 85.13.157.12 is neither permitted nor denied by best guess record for domain of stefan@herbrechtsmeier.net) smtp.mailfrom=stefan@herbrechtsmeier.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:to:cc:subject:date:message-id :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=Xdn/sXGA1Y1GbxykPRspWTSicqCzOtNnPB01u9ySqGU=; b=BIFjRXl1eaYs+lPr9rXGiUhn0dcJjzdxa4ygmFcTPukFTA+5h6f4tBxuWfR3Pa6M0x 47xnk59vbaKNsYb5Ca/1/wzaEgPpFNVAvPDUY2RVwihatC2AD4uDiGXKaTndrbzrMzco vbS0Pf+HePQXOOxiB0iwY9qlbJzC4O1olBujLLrjDjuGa1DIF6c4/ZE1Ukw+GT6YRIhH jzyqkTWAZ75mI5dIiWWwkINAQqc8GlpoutU6zipibuckkgpAjY+sOrNcemURV3G5rIPo CJEXr35Efccs/RL4SOxOP51LfGNXcvD2bEV1O3kVxZP0a+LbiW+NeYUntchQJZsNilug xU7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:to:cc:subject:date :message-id:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=Xdn/sXGA1Y1GbxykPRspWTSicqCzOtNnPB01u9ySqGU=; b=G5RIz7uqGBy+O5VLI85lBMkFGeiYAExxXApGAxUUD2LpMcQDi4nPZ8kk6dk4WlbJLE cbMZHGPM1cRiIRp/0WFSnbjm1Hf7knYljN6GyLFAgwS9kG1HO20M290WYBBgf8kMGwrQ GSaSSETxS/NDSvD4RcVsL1pJASnsa9kSceH0DJ/AerI2QTUpKkHenwMGoyyDRTjNboLJ a6e9/oksmtNB8sx6STtCjExDb/Kf7d+uGnVkSa9f3pLUQzrlddR1FcZpgNiJ1SFGSNBQ bjgtY6hQCACjdzb5fGtKQpGeE7apdfc37VzhbaaaGOZdsRRS/3P7yk7D3NXaZM1txUWl B0Ig== Sender: swupdate@googlegroups.com X-Gm-Message-State: AMCzsaXOWbf8FABU951CO0rjibnQfXwUHDkIENzNJ2FkFhmXwfUbXsuL DiJlg/xARskt2wWW/Etv/dw= X-Google-Smtp-Source: ABhQp+TAYo0nCNDMYQKfjJ0qH8bG6HrDM2M6OF20KzJ95p8KEa2c25QMmF2epGxn7REMFttAFeGI/A== X-Received: by 10.28.136.149 with SMTP id k143mr8064wmd.3.1509002388513; Thu, 26 Oct 2017 00:19:48 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 10.28.88.14 with SMTP id m14ls1219141wmb.11.canary-gmail; Thu, 26 Oct 2017 00:19:48 -0700 (PDT) X-Received: by 10.223.135.55 with SMTP id a52mr409837wra.28.1509002388096; Thu, 26 Oct 2017 00:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509002388; cv=none; d=google.com; s=arc-20160816; b=KwEb1S+YRRYDH7VDCl5Dgv8Nr+K6wf3FYCBRYiDqCXux39e0WFH/4GyWKF9AVMqVB9 bpG7izyjCHvhxAretluy/oCg3427i1lUDBj05JCmTgSUuUvFNqB89wUMyisXgBChcfbM HQjvP7ziFNz+eX2M4NsO+g1kudk/cfFxC24YZhLPGcj6TMrltY0R7FSz656zlAtMuIJX Lz9Q/oNToNFsCio72BURvnhYByGN2JaZBHGj+vnDqgGB3KjhciCfK8mtYitUQ0FQiKYq xJbE95ypaESN9hYIiaIokkn1jGsEru+EvZqxnBpCqzCBZh++I2NOOFd9+lBTCHZnL6vm iVBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:subject:cc:to:from:arc-authentication-results; bh=Wju/VLdQsJlgDL0spe8i7I02JYWXOQoYb/D8SzT7eQg=; b=yVwymmzJ/ngTNQW5ospqmLykUbZ2a/YFDRNf2wSufJD97usFJt/UwsxVb2hIQiY5lf R1pIV3O6N1OqrykW0CmgehAJFpZ/p2BTw2u6ItldcHjolFwKhCaSvtK8iFdLLlv59Qt2 1O+he+KbRnBDUHTxk5WOQnQiNBbet8lvp1+9gkQ1d/RZkXl/PoH/APvXhR5USh7cKdM6 J7d45Ub/7MZZ+uh5b82GhVGfltnHqfY+BPAWIQeb5Hvi5ySHALIlHe+0S02OXWUeW/tS D+KHE9mz5vlbCWAxucD5aXnT4zW8wQpjXth9uhswNG0WGjwbuNiW+ijUD4Ndyf9A+9qC /6tQ== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 85.13.157.12 is neither permitted nor denied by best guess record for domain of stefan@herbrechtsmeier.net) smtp.mailfrom=stefan@herbrechtsmeier.net Received: from dd41138.kasserver.com (dd41138.kasserver.com. [85.13.157.12]) by gmr-mx.google.com with ESMTPS id b8si151586wrf.5.2017.10.26.00.19.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Oct 2017 00:19:47 -0700 (PDT) Received-SPF: neutral (google.com: 85.13.157.12 is neither permitted nor denied by best guess record for domain of stefan@herbrechtsmeier.net) client-ip=85.13.157.12; Received: from WS08941.weidmueller.com (unknown [217.244.7.16]) by dd41138.kasserver.com (Postfix) with ESMTPSA id 8D15111A005A; Thu, 26 Oct 2017 09:19:47 +0200 (CEST) From: stefan@herbrechtsmeier.net To: swupdate@googlegroups.com Cc: Stefan Herbrechtsmeier Subject: [swupdate] [PATCH 1/6] check_if_required: Don't skip a file if not all related images are skipped Date: Thu, 26 Oct 2017 09:18:14 +0200 Message-Id: <1509002299-24631-1-git-send-email-stefan@herbrechtsmeier.net> X-Mailer: git-send-email 2.7.4 X-Original-Sender: stefan@herbrechtsmeier.net X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 85.13.157.12 is neither permitted nor denied by best guess record for domain of stefan@herbrechtsmeier.net) smtp.mailfrom=stefan@herbrechtsmeier.net Precedence: list Mailing-list: list swupdate@googlegroups.com; contact swupdate+owners@googlegroups.com List-ID: X-Spam-Checked-In-Group: swupdate@googlegroups.com X-Google-Group-Id: 605343134186 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , From: Stefan Herbrechtsmeier Signed-off-by: Stefan Herbrechtsmeier --- corelib/installer.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/corelib/installer.c b/corelib/installer.c index f246953..1d84b2e 100644 --- a/corelib/installer.c +++ b/corelib/installer.c @@ -86,7 +86,6 @@ int check_if_required(struct imglist *list, struct filehdr *pfdh, { int skip = SKIP_FILE; struct img_type *img; - int img_skip = 0; /* * Check that not more as one image wnat to be streamed @@ -106,7 +105,6 @@ int check_if_required(struct imglist *list, struct filehdr *pfdh, * drop this from the list of images to be installed */ LIST_REMOVE(img, next); - img_skip++; continue; } @@ -139,9 +137,6 @@ int check_if_required(struct imglist *list, struct filehdr *pfdh, } } - if (img_skip > 0) - skip = SKIP_FILE; - return skip; }