Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp815186imu; Tue, 20 Nov 2018 07:22:35 -0800 (PST) X-Google-Smtp-Source: AJdET5fH0Vs0DnK5EYDy50wAi4L19BRpIWJaXEqVFvSuEwzTAQQhoRXxQOu+nfK1LQZTUoebd61/ X-Received: by 2002:a62:2095:: with SMTP id m21-v6mr2641075pfj.32.1542727355713; Tue, 20 Nov 2018 07:22:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542727355; cv=none; d=google.com; s=arc-20160816; b=yjRDnWf3TtJCeUvkwdyOPADTcbiDaiIzctzHJdl5bpfuAzHJcXFRcjk2sDpuPZaij0 GpAMLQ5xHDLSkUMsKZvCRwCu/jrOkmOPATZbNFdp9waFYq04omdsBLQOsmFCopElOsNJ 1Kq36RiApeeXmjGCRryIfXV5Urw62QCKJ+g15DdKOTywt7PTnWPJzDWXAYc0e2YJjarI qVvB7/C5NWoZP5N1h/15iV2Qzw9mZDVDDeMKg1/L8Ggw1rwWCw9L8Y5ZfshBmFgqyh98 rsV7xp4ZTgymM6PCmw5DIFnFbuBtQl9IULuzVw4Tukvbbq66jYcGc042+iOHfmcae1N9 L7nw== 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=lvClCUjSOJyylp3cMkdc9a4SWaRqjRlW7uVo9Deb7P5b2Zhb14WqwfY+zeVzAysoyi KojMqFJbs+5WeSGVD6BDpaduXs0PWVrkhSLso7tOX4d+I/lNAWOjMrIwGeqN+BaxNHI1 HCchInYkE04RnxPtVqqThruFyMGu8H8egKTOTZcPJXw83JpV4OVX7QuH4PlvI8O1DFP+ JB3wFUvLJhvGv5sJBQUwYOSwvVPMaVG3o9xvaOEyYDQ0jzHhC2fCdhuixr5WmF9JuANp OLceND9hvQOVrDmtkDwMZbTLbKHIZGLUdbIwsxqyxpWv5ptCByFdulJfOtmE4GZCR5Fy goDA== 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 g124si9916377pgc.568.2018.11.20.07.22.21; Tue, 20 Nov 2018 07:22:35 -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 S1730058AbeKUBYM (ORCPT + 99 others); Tue, 20 Nov 2018 20:24:12 -0500 Received: from mx2.suse.de ([195.135.220.15]:39318 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729960AbeKUBXp (ORCPT ); Tue, 20 Nov 2018 20:23:45 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id E5EBFB0B7; Tue, 20 Nov 2018 14:54:12 +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: Tue, 20 Nov 2018 15:53:48 +0100 Message-Id: <20181120145351.30390-14-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181120145351.30390-1-nsaenzjulienne@suse.de> References: <20181120145351.30390-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