Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2743711pxj; Mon, 31 May 2021 09:37:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwE6IfpfP5TCvrO2aR/hHn74Nc2d+oUbOgJe/cLmDBhUbEUyhLfcSlJJzuPc+bbgJQ7s8NI X-Received: by 2002:aa7:dbc9:: with SMTP id v9mr26502315edt.183.1622479061291; Mon, 31 May 2021 09:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622479061; cv=none; d=google.com; s=arc-20160816; b=cvf+Dhqt/ymT7c/kbqHa0wXLo/txaDkDSpXyapR0I2MzlPa6OVZJzdNfVmlIXWB8+k aubeSOPvsshxyl9xy6bwdOCD5G4MCNaGb8kT6wvKUiy8meAM8GFVaKenvhVezcjXIgB4 E97xpHrqHdLDob/pHNTYJ9LOTnjvUJlfdp7ST2us24EY3JG5K2KYWWZYfHGC8mbA/jvu 8lLNlJKDxvlUxv9bL/e3aQi+3wNgyItw0ezQh4vrSBj1XP8G6LOa2HNP330b7vco+lLI l5JR5fSeZRPpkdunAJC6C+qs578/BQGpwXV9lP1iKgB3yg0pwgnAIdCLbvCHN8Xa1vPI FAHQ== 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=0WSVZEX8pPlPugUExhJhlgjenXekBNXZo8ymn35M0zdgv8fH52qVugCV8KHYa2/A7p FTK5rbIVJEqm/S6Zyh2UzUmbccEQCmDldZgVlsMMCymuDfSgMcHFB/emdVNpUx47jTbU QjuyzB54H6yKJvLsOx1xVGps28k05k4L1JVWijIA+GM+hr9Dqm5m+3zgCpgNdu1WaQYd Qe0FUyjVPQ9KrlY/jvPRosyL3hoekZSe/jHG4aTf3oPctbgHIMG8kzHMu3jzacPaMwZk k4ELMxUEh/QZ3Ls/Gqbv8LJzCRSvhkcRqFIpBwJF8Ze1MU2turPwHSRS8IeGxtev/RDX lgmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ihf0r+Yl; 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 bc14si1427584edb.374.2021.05.31.09.37.17; Mon, 31 May 2021 09:37:41 -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=Ihf0r+Yl; 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 S234179AbhEaQht (ORCPT + 99 others); Mon, 31 May 2021 12:37:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:40720 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234170AbhEaOtg (ORCPT ); Mon, 31 May 2021 10:49:36 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C7F9461C99; Mon, 31 May 2021 13:57:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469429; bh=DKm/4LqZEMd3LR14FJ9YG0VfrPqVTXlodDeLd28VrlU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ihf0r+YlqXdCa1hPUAGY815/NZqESAmQIjUd9tbI9TEDDpJrbEULRYHX7CeG8fp/4 HAN574yBmU88Kbq+Rt3xyCEkI1GWpXi+1M+gDyUNDZK98E6WVa1oKhjHpKWF5euzVo bXCXAbxIsa7kgoL/opo+WJW0cyy/YzlUk8BIALf4= 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.12 194/296] Revert "media: gspca: Check the return value of write_bridge for timeout" Date: Mon, 31 May 2021 15:14:09 +0200 Message-Id: <20210531130710.397886966@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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