From patchwork Wed Oct 16 08:07:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Babic X-Patchwork-Id: 1177676 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=googlegroups.com (client-ip=2a00:1450:4864:20::139; helo=mail-lf1-x139.google.com; envelope-from=swupdate+bncbcxploxj6ikrbre7tpwqkgqemjewadq@googlegroups.com; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=googlegroups.com header.i=@googlegroups.com header.b="H5+CWNgy"; dkim-atps=neutral Received: from mail-lf1-x139.google.com (mail-lf1-x139.google.com [IPv6:2a00:1450:4864:20::139]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 46tPzZ596Gz9sNx for ; Wed, 16 Oct 2019 19:07:37 +1100 (AEDT) Received: by mail-lf1-x139.google.com with SMTP id c13sf4526430lfk.23 for ; Wed, 16 Oct 2019 01:07:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1571213253; cv=pass; d=google.com; s=arc-20160816; b=fFOxCecWhrIJ5DgHKVhO64HRai+GWzxhG1dJTAJ2ZC49+ZzSwDr2rVDFGedbfgIlyw EQAKv3R0Q3EGhdxOeU8A2+wGpIL/Mx3Kc6OqCEusZfCFTbHLbR9r5WpB0peQgaSb65g0 Z4WuBIAASmsyfyF93v4iCcvE2pYiD7Eo6nLTdi/3LIh+8kkPqX0XkRn0YdQjtMem+w5E dmDLcoqflKyRqXkVmPkLlg1xIVrgenG3ZhA+HoG9nHC9MvmlrWli+1GD3sBSvX+XTYLu KpRDba7WnLypj6TesiRaPNEY/LfEiDPV8flCbnHxDGkyX8scmtuI9Qd8g9kOuVR4S8yw Iisg== 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 :mime-version:sender:dkim-signature; bh=uprkqZmjdEjey4wgbPGhX2F8mdu3MEhRzuGUVedIlck=; b=mK3aX+tIHssu5YEZQE6P05d1vREwgzK92eCzrIUxT1wli6fILmgOjbJo7OBXNSqx98 RN9hucziqH3Om7RCzbUr4IAWtXGy5r98FfyoQtiqWaBzENzCie3mbtr648SMP/ajh4dV 95MjFvgkKBE5bqbdCwbm/ZVFkOyo2+jKQrbcdTnCi7WTHEcfCNKSCSE0m7yLnQ1NwDu0 XJFLdikgNAmBqQWXZy4WOfSjXtHfBobdoYcSxkI6Y4UItl0kwRSXyGl+SzqoRXmp9OY1 L5a/PNbQDQkcJxWY3B+Sck4YbmbbGh3jjldhXVNQFpoKiIGO9X10M/j6ljpp2PwUgF2y Ywyw== ARC-Authentication-Results: i=2; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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=uprkqZmjdEjey4wgbPGhX2F8mdu3MEhRzuGUVedIlck=; b=H5+CWNgy8oDHpROOeGUiWoHRzJjmEIq3lY3QLHUuxWdjH27BLfyuyy/ZNsvTh9tJ8G OpnY6xTyizPSJ8ixvAJ3j37mvYNBc/HdK1sbCx7xn0sblYNn5QWIu8FeYBlyfMR+heYY aX86k92+UwkD2q/gGMhNakqoNy6fnIZMrnAj7vjwWChgqqls2Z5vS6aPNasFk2nihWrv cWeFrkA+qyTN1/oRohhwozDomeqOGbdCytoiinqgl2Ry8AHIFPiTtWBafv/ptlJ1k+Fy tyWOvgblKPyO25y+j4wj98VQZilnBovgfnJK3mWdCAIPT4dSvqM1SW7VQ1aUYisxkNaN Pxtg== 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=uprkqZmjdEjey4wgbPGhX2F8mdu3MEhRzuGUVedIlck=; b=Bo+ySc9FKYdudjjT+7VSY+U7J1Fbk3H9Vx0g7y16vn7RhDK+IGPcZnp/udcV4sY1jc 0om+pF4evHbal4eyHSXVUAtRtlViKsmwX2lcZKK1xTszzTyK25D9VpJu5dj0Dg7ZUcnf p2bL9upuUrdcrBJ+ZawK+V+8jVuELWaff3F/NzZTgHfpEHMaqYp0Av/Ea8AjkrfLqg61 g7sywI1yqZuxxIcmcahTGYWWbVKbzbRowaCDsczLGz0tal3VFIjYGuEpKnE6Y+mueHbF wgLwRDwe5zr8+7Jm0iUncIzCh/pJHXVYuSdsD5z5Br+TeLgOISw4fi1ZIesxU9o3eUJ7 pMTQ== Sender: swupdate@googlegroups.com X-Gm-Message-State: APjAAAU4iaaJJAJUYMpe3TDieCsBJzSP7ZZU6SpWeL7yq7PA1A16tA0i V4JuKmtcIfu5xwThgReu3is= X-Google-Smtp-Source: APXvYqyoO4IRCf3h1gmElJaLi0EVQFimV1oBeGrBbY8nouT36OsJspwYX8fwjjH/u8Oxcx0FX3wJ9Q== X-Received: by 2002:a2e:9b12:: with SMTP id u18mr25789125lji.142.1571213253161; Wed, 16 Oct 2019 01:07:33 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: swupdate@googlegroups.com Received: by 2002:a2e:47d5:: with SMTP id u204ls2604018lja.5.gmail; Wed, 16 Oct 2019 01:07:32 -0700 (PDT) X-Received: by 2002:a2e:b4f7:: with SMTP id s23mr23533068ljm.111.1571213252516; Wed, 16 Oct 2019 01:07:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571213252; cv=none; d=google.com; s=arc-20160816; b=laoMoxxZAxILcQTc1tEcZMHRlSMi91xmCqj8wbsFoL306t0qgJXv9SGDP3yZsajxgz WXWVNGoqCWoTqYRsa+WyntKSeXCCZauUZHhebi0yyxmoO+YhihXb3zJ+e1Q1Eo28C2qq 43gOt9FLVpALT4vnV3rqFQAD7hWA56NGC2T9+QpBIKldE+IcWqldQWM7+7SYUaaoXqpC jbPuT1WDWtEdL0MDLVBUxD4bikBXJRrNY4uUfjIT37UY2smyMxpPB9RimGkf5aEfdauF LfgDoW7/GGvnwEQQpYN5mk5suK+RANMsI4VzNQhf2sE71QfnFGTJnygkL5glQB96IIPP 84Ig== 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; bh=AT48HbcJspeo3G6bq944EXqTjqg4FwLkOOrbNrhPQRk=; b=GaLhUiqKZcQwTFAlN7i8A6pxRrSZMoy8RdnK2nIfi+yH9V/QFHRBg9toXkDou/SihV 5icZMf4IeW9o4ot/3Cxy+qcTPzI+L470ctHqqRky5r+g+MPjOQLk9bT9aoXQWoMGJ8EE DO3Wz9XAnkDFMoQhVopITv5TjZOuNba3X1l+8WAUesR6bSTsswGxrQ4h2fAXRbdn5pRo n3Kk8aV/ZOjUK1Odl8IZIZdyo6P+ydKaqcmPahH5Svy0x7pyI+Py4Q/ZSdE+sClpmUpI JvG8XQlZEWF6EoZ1CpRL8qtgeXcSrMkDlss5HK25mAH3Tcce9Ew9oqZ2f+pjooFHl7J0 UBPw== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de Received: from mail-out.m-online.net (mail-out.m-online.net. [212.18.0.9]) by gmr-mx.google.com with ESMTPS id z4si1563582lfe.4.2019.10.16.01.07.32 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Oct 2019 01:07:32 -0700 (PDT) Received-SPF: neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) client-ip=212.18.0.9; Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 46tPzR6SFjz1qrK8; Wed, 16 Oct 2019 10:07:31 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 46tPzR6HKcz1r0t1; Wed, 16 Oct 2019 10:07:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id LfEU1lz5coC2; Wed, 16 Oct 2019 10:07:31 +0200 (CEST) Received: from babic.homelinux.org (host-88-217-136-221.customer.m-online.net [88.217.136.221]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPS; Wed, 16 Oct 2019 10:07:31 +0200 (CEST) Received: from localhost (mail.babic.homelinux.org [127.0.0.1]) by babic.homelinux.org (Postfix) with ESMTP id 010014540491; Wed, 16 Oct 2019 10:07:30 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at babic.homelinux.org Received: from babic.homelinux.org ([127.0.0.1]) by localhost (mail.babic.homelinux.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5oBoR4waIMD3; Wed, 16 Oct 2019 10:07:27 +0200 (CEST) Received: from papero.fritz.box (papero.fritz.box [192.168.178.132]) by babic.homelinux.org (Postfix) with ESMTP id 80CCB4540430; Wed, 16 Oct 2019 10:07:27 +0200 (CEST) From: Stefano Babic To: swupdate@googlegroups.com Cc: Stefano Babic Subject: [swupdate] [PATCH] ssbl_handler: fix age comparison Date: Wed, 16 Oct 2019 10:07:25 +0200 Message-Id: <20191016080725.1825-1-sbabic@denx.de> X-Mailer: git-send-email 2.17.1 X-Original-Sender: sbabic@denx.de X-Original-Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 212.18.0.9 is neither permitted nor denied by best guess record for domain of sbabic@denx.de) smtp.mailfrom=sbabic@denx.de 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: , Age is defined module 3 and not module 4. Signed-off-by: Stefano Babic --- handlers/ssbl_handler.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/handlers/ssbl_handler.c b/handlers/ssbl_handler.c index 659c90d..7605fd3 100644 --- a/handlers/ssbl_handler.c +++ b/handlers/ssbl_handler.c @@ -153,10 +153,10 @@ static int get_inactive_ssbl(struct ssbl_priv *padmins) padmins[0].device, age0, padmins[1].device, age1); - if (!age0 && age1 == 3) - age0 = 4; - if (!age1 && age0 == 3) - age1 = 4; + if (!age0 && age1 == 2) + age0 = 3; + if (!age1 && age0 == 2) + age1 = 3; if (age1 > age0) return 0;