Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6648240imu; Wed, 14 Nov 2018 05:01:57 -0800 (PST) X-Google-Smtp-Source: AJdET5dc38wVvYHtYt5JBVYuha983J+dZWkpUQjv/T6hUBNFc3jwYPInigXIiV+eCv+Nu4J2cJmX X-Received: by 2002:a62:ea10:: with SMTP id t16-v6mr1967592pfh.228.1542200517067; Wed, 14 Nov 2018 05:01:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542200517; cv=none; d=google.com; s=arc-20160816; b=moWLHaHnCEaa35wJdvXoWOJC9sayd11U57GJpa4EkNVGOVikN+W16l2DcX+jOiyy4N O1y2eqZbuRXSAm5AGBqJDcGKW0LGkC70rvCZdG/rARB0nT7n9PTaN7Dqy0UJNBEuC/89 90+fakF1I5Dq6fAN+um5pZPn+7q9zqoChJA4LHCm15Dcnjv5AiIcQ0tb81b0EI0BIKgx GNL3EwbMpvnluFXmbkvRdmj0JUnhsfBN6RMkfkxlnZrg7/LnoAlZNge4UfwzqWkdKhbT mMLR3wUEQQmU+a4ZuzPZ7TFkDwDf1b54eSzzOeeaFCixdwibLP9kWIRburpoqbu7Drw3 QsMg== 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=tqSP5Nd8JdEhkcKobw8tFrIgcv3MIKJBnQDXLak7TPI=; b=jkayfzIRoYGDsXFkrCEMF1Oa6MwVxhEjpCpV+C2C+R7NWvU8SeqFRpd1mF1BpMQgWq UiRqj8WYFtZQ8pkvieJYEzWL65XKOmQsbp1XzKCCafDL1Q589Kz8svMLN3O2r/w9CFVP 6Acv5TmBN9/U0cIqzOKilZRQFui+laCiCljCWbttz7iuj/h8AJDwIqmaQoqxoM71JWEC C9BzxklTmBrkqGmRp16il81V2kXiDcERGzyBdc59PpiCvEBOvBJgXOaXaKvX0Fd6WqO+ Ll+CUw3NAt9rJb51wuELYPrbrRlnWQsLd062cx1+TecpRoFRCJtDPEIjhLsBjB4YLnOk k2bQ== 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 f1-v6si14377165plf.288.2018.11.14.05.01.41; Wed, 14 Nov 2018 05:01:57 -0800 (PST) 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 S1733121AbeKNXEH (ORCPT + 99 others); Wed, 14 Nov 2018 18:04:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:44622 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732845AbeKNXDd (ORCPT ); Wed, 14 Nov 2018 18:03:33 -0500 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 69815B0F5; Wed, 14 Nov 2018 13:00:23 +0000 (UTC) From: Nicolas Saenz Julienne To: stefan.wahren@i2se.com, eric@anholt.net, dave.stevenson@raspberrypi.org Cc: linux-rpi-kernel@lists.infradead.org, gregkh@linuxfoundation.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Nicolas Saenz Julienne Subject: [PATCH 13/16] staging: vchiq_core: fix logic redundancy in parse_open Date: Wed, 14 Nov 2018 13:59:39 +0100 Message-Id: <20181114125942.25163-14-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181114125942.25163-1-nsaenzjulienne@suse.de> References: <20181114125942.25163-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 a45cdd08e209..5ee667d46eb5 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c @@ -1461,9 +1461,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