Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2668425pxj; Mon, 31 May 2021 07:50:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCT+zfizi67C7IEvSJTJdzwHuw37jGaoNoAq97neaJJ0TQRbeKHKDYYbMZSWCsPbdjsnYE X-Received: by 2002:a5d:8986:: with SMTP id m6mr681263iol.87.1622472655350; Mon, 31 May 2021 07:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472655; cv=none; d=google.com; s=arc-20160816; b=AubEqv0mMAjcYc78i7Ry2hHw+6HRZREtexxKSFkOrSLlct/o+9YHgxoPXcHqVLofPw wBEiBoVgX+u7lzAimhoAZyfJv1fYHFT7GGACXZUnjfJ5BQPEVl4Y7ovNxFfmwYcVDP0D ZxXLEOWJj9G8HX9HJt1gtpeERP3EVSONFBVkzIRjkBjvPnWOEiXilROnt1dPfF0e+6f6 MvI5RJLE4ko2RWOvHxI1BrtCmDXRPobnndSppC2wIDMviLZqH0+BCDzKV9IJdLk+0LtI 4eB86XNgT22KrG0H3nLbHeAkN0vnJjGCiGw8BAauTJv/Gvb6eTmhVNjMy5Xp8Dhs+hVA Y2YQ== 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=Z7+4I+J4ySlozuCcEO7NSCCdTHBrBmhQxD01IW4XwiW60C1URPaXo5hkRI1fRtqI0m TTX9hXS9EyEDfutejLv+tl2QOLF6C2NBEvetFaLLya0/AhYP5XZ5hR5kpHZihBV6Ztso cJsSDqclGjqzRXuxgqvZBEBVwdGS1MP5WOA2vFm7jBHNNf0bkc8sxCObcVqhfvjvWssJ b6eH/DUmyKuS9cWBB4+lc4l5yn4wq7EoPboCkrkCyGiiYaGawvmSUM+dvhYSblDaD0nc fbofCoIsPC6ZCY8lpkjQanJtLzvxi24/R/zEv/3foCeRJzXzXyAgOnX/zGyS/qNfsWpG jv8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="1V/KJO1i"; 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 j10si13047914iom.77.2021.05.31.07.50.42; Mon, 31 May 2021 07:50:55 -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="1V/KJO1i"; 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 S231228AbhEaOuj (ORCPT + 99 others); Mon, 31 May 2021 10:50:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:37384 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232861AbhEaOB4 (ORCPT ); Mon, 31 May 2021 10:01:56 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 12C0F61944; Mon, 31 May 2021 13:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468224; bh=DKm/4LqZEMd3LR14FJ9YG0VfrPqVTXlodDeLd28VrlU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1V/KJO1i88kXY/9/Wkg4Ko5kxqssbKttzEUx1V9idHfX54PTOU1d5Mp6/XlhwCyrU LGROFb9lLs7o2tylEI77Fd4z+wrrEFI0oZI1BkVRyooi2Ikv21tmi2qh56qX3GwT2O YdJA/PB7WI6skDMjlP3a35ruJpcvE38jbnaBbf98= 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.10 164/252] Revert "media: gspca: Check the return value of write_bridge for timeout" Date: Mon, 31 May 2021 15:13:49 +0200 Message-Id: <20210531130703.584545769@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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