Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp167414imd; Fri, 26 Oct 2018 06:49:53 -0700 (PDT) X-Google-Smtp-Source: AJdET5eDqEcDkfjbA7kzA5ukqVbNsIqnslh0nufyf8U9Vga+a7eYnp9q3HKMHE3CYye/qUPMoNeS X-Received: by 2002:a17:902:70c3:: with SMTP id l3-v6mr3714377plt.125.1540561793660; Fri, 26 Oct 2018 06:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540561793; cv=none; d=google.com; s=arc-20160816; b=H3GGpbm1ee0awTBpUS/3desLUQeHe2jeGHawqbNkSiD5AOoT4l9XMUFppmSLEm6swq NC4HEu45fy+HrlYKOgN8y7kQ+aGVgQiQuS+cU3/r+gl6Bj9UiWH9bd257Ok1mGKmI5Y5 TdcPgYrB4jrI8zDdqzdK4wAu5aKWfVeTuAfi1DbNCRYHDF42eEAgCDA3WqcYuugE4xPM 7zs8HHYvW7A1boWQbYxlax4boTG3es03A1sR1LQ3OJVhj6CdMZ30GEEnURThAJ9kUg16 fo7iw5rDRdQGcndtqiZ6JVpFdGcrJF9UYyxM1iheHt4ePzVzqserjZtBbD2kckegzhJE GXgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=TXCgeDLJF7HaADPa8IBf3fiIi5iZMVJMjuLu1OhoV9k=; b=BzB5fDYaM9hxzfAjDhlTiT0Cl4m07aUtzUwt3zyWf9Trdx3q5aAfR9WfYtLaUUK3m5 jdIpnJgQIsFAQAF8jfqq5JF9q0IIt168WKpkScYNshFChCSUkC/G76O50olKH/1EaFkz UFJyOByj5K2ztRuVQMzPG77JYjjAcHf7rkYirkFb8WXjKUB2yiIIv+LzehE5BP0pVRml K5S9Mp3YwLsPvaoRac/jrG9/xIlir1OlYLy+QLW/HEayfMWzZvNXMIbvd0psQpTKdE0v fdopUF+Gx5T1km9pIWymBaqD+Vyo0e66HpzbYFQEMyz7Km5DTZQ83W/1liMDt4eQQU3/ lJAA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v9-v6si10335609plg.18.2018.10.26.06.49.38; Fri, 26 Oct 2018 06:49:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727629AbeJZWZs (ORCPT + 99 others); Fri, 26 Oct 2018 18:25:48 -0400 Received: from mx2.suse.de ([195.135.220.15]:44790 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727610AbeJZWZr (ORCPT ); Fri, 26 Oct 2018 18:25:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id D8FDAB055; Fri, 26 Oct 2018 13:48:38 +0000 (UTC) From: Nicolas Saenz Julienne To: stefan.wahren@i2se.com, eric@anholt.net, dave.stevenson@raspberrypi.org Cc: nsaenzjulienne@suse.de, linux-rpi-kernel@lists.infradead.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH RFC 15/18] stagning: vchiq_core: fix logic redundancy in parse_open Date: Fri, 26 Oct 2018 15:48:10 +0200 Message-Id: <20181026134813.7775-16-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181026134813.7775-1-nsaenzjulienne@suse.de> References: <20181026134813.7775-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We update sync to reflect that the firmware version is compatible with that option. We don't need to check both of them again further down the code. Signed-off-by: Nicolas Saenz Julienne --- .../staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c index 0c37b7032857..a5664a44258e 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -1462,9 +1462,7 @@ parse_open(VCHIQ_STATE_T *state, VCHIQ_HEADER_T *header) service->sync = 0; /* Acknowledge the OPEN */ - if (service->sync && - (state->version_common >= - VCHIQ_VERSION_SYNCHRONOUS_MODE)) { + if (service->sync) { if (queue_message_sync( state, NULL, -- 2.19.1