Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2706940pxj; Mon, 31 May 2021 08:43:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzdv4VTmKuh1IAVGss7faeSsu1rBrtuE1gTUws0P3pSmyRq+ccqY3PjNJ7omIkec2WFQwvW X-Received: by 2002:a17:906:1401:: with SMTP id p1mr19181508ejc.526.1622475832464; Mon, 31 May 2021 08:43:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475832; cv=none; d=google.com; s=arc-20160816; b=Or6ITTvYdLszkExL1LxkEiQqGr6IwDhSvsDRXWZzzoJP2L5bUXS8V57vkmSUWZtAF9 7NMkT7PcMQGtSrqEhqWgL6lh907z4zZKlnO6iPknUFGlfHfldjOlYyrUPFd/Ejnkdk4m QqoaK8sp1pI31Hnsrx4AGnDyVTl1Tgq6fv1M5sNbjZVWmiHFHX6LFOJDdzmm2Q1jEl8t Q86JGuUsVlqVBrPmbHC+sgupX302MmzN6TDN3NsEApHwG/5Cv5XIOVahiBixKhPjGWRY t28PLiaf+FUDAucLyketoVQFCXr9+tMmSN28y+Njp3W2I95+RLcT7HBXHeXZPIYKi1h0 ecPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=GJFeHhOwRJ31/orlLXSx3VbFPSUQr4/tjvHJfoSTeT4=; b=et2ZkMkm3yMk4O6y8izGigcvXrCqeWchfBWSOaztScUxhmzpA+27gjTgdpWUga+Cx/ YbNH8IuRBwAko8Y4/qfrfVrMwv9uOdsHtNGXmDEVEsM07sRmqpGzBuFQdUyxfp/0p1VD MNWHqQJ6lsme/Lb1JKLWAgInFGxqXo6OWM50rPfz3thtYrzjof8il7bLTkJ4WCvrP+nA Q6OWZBZfVHyneeK8tpoG+Bq9Qe9bBz2LW/wtHhjboeZLnFqYuWpSqDYYP+pxoO5Ys2i1 79mq0Q4xWA+mwXAW+iQ2/yosZlkO0+nmuflJaxPt3eGH6dJzeZgi9PLjd7nYP5ynxyMD YFjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vtYIp+tk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b27si12959424ejc.676.2021.05.31.08.43.28; Mon, 31 May 2021 08:43:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vtYIp+tk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233939AbhEaPm1 (ORCPT + 99 others); Mon, 31 May 2021 11:42:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:48848 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233677AbhEaOXd (ORCPT ); Mon, 31 May 2021 10:23:33 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F16C66141D; Mon, 31 May 2021 13:46:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468762; bh=DKm/4LqZEMd3LR14FJ9YG0VfrPqVTXlodDeLd28VrlU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vtYIp+tk70mHEeN+CGdyD11ymTe2aKqTHGUsd2NbyqyW/WPkH6p296fIEs5mkkEh8 2YSLNzKujU7SIIbiIyz1FB3C+o+i0pSuvwh7zeScTGLvhUbXj5qR0bkdvbkn1gnbde +edZui/Fac1HyIfClwlAGLP+PgA1scELTfilJ3Ec= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 117/177] Revert "media: gspca: Check the return value of write_bridge for timeout" Date: Mon, 31 May 2021 15:14:34 +0200 Message-Id: <20210531130651.958562011@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 8e23e83c752b54e98102627a1cc09281ad71a299 ] This reverts commit a21a0eb56b4e8fe4a330243af8030f890cde2283. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It will be fixed up "correctly" in a later kernel change. Different error values should never be "OR" together and expect anything sane to come out of the result. Cc: Aditya Pakki Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/20210503115736.2104747-63-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/media/usb/gspca/m5602/m5602_po1030.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/drivers/media/usb/gspca/m5602/m5602_po1030.c b/drivers/media/usb/gspca/m5602/m5602_po1030.c index d680b777f097..7bdbb8065146 100644 --- a/drivers/media/usb/gspca/m5602/m5602_po1030.c +++ b/drivers/media/usb/gspca/m5602/m5602_po1030.c @@ -154,7 +154,6 @@ static const struct v4l2_ctrl_config po1030_greenbal_cfg = { int po1030_probe(struct sd *sd) { - int rc = 0; u8 dev_id_h = 0, i; struct gspca_dev *gspca_dev = (struct gspca_dev *)sd; @@ -174,14 +173,11 @@ int po1030_probe(struct sd *sd) for (i = 0; i < ARRAY_SIZE(preinit_po1030); i++) { u8 data = preinit_po1030[i][2]; if (preinit_po1030[i][0] == SENSOR) - rc |= m5602_write_sensor(sd, + m5602_write_sensor(sd, preinit_po1030[i][1], &data, 1); else - rc |= m5602_write_bridge(sd, preinit_po1030[i][1], - data); + m5602_write_bridge(sd, preinit_po1030[i][1], data); } - if (rc < 0) - return rc; if (m5602_read_sensor(sd, PO1030_DEVID_H, &dev_id_h, 1)) return -ENODEV; -- 2.30.2