Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2713727pxy; Mon, 3 May 2021 06:29:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQ1Esdd8BgUcQapcKsf4kljYfFqagaTiC5YIOgc9PysRPFt2ZIY0tvkqlM33EBq4tPR/M7 X-Received: by 2002:a17:906:c010:: with SMTP id e16mr16767016ejz.214.1620048587507; Mon, 03 May 2021 06:29:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620048587; cv=none; d=google.com; s=arc-20160816; b=ukhiAGD5xs0GDvNcqCVYF9WyCUbDAY1bSbzrKH42+W6HwGTuxZe8crDWoF6DSRywC4 cvHbbi4YkomRPo2U0htz7FP0lcoC1KiM6bfKE7kIXvc+LKADKe5miw8pTKKEFmLdOLjS ItyKL+MqVtTfwQkqL/d4tTBPOslWl0Br89HBuTuPKT961Es04GBZczpY8gosOezyWuW0 LrOD9nLVrK0wWfR7rOaAUh4g52qlDFQm1VUOpKhO+lWJTOBvA0QtFVhC4aRJ7HFBizaq SR+0d8JT+lr6oGilwMUvdQasjxLYv9ExkrzIF6OjEfEP2sAekur4R6GLNmnmzoqqWdRt r/Bg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xn99aqxPFDAoJ9h39Ac8T5Vn+dkLtk7183g74xj34Ug=; b=SmJv+zw2hViDPQvVYVYEWKa21100s71N4s7ei3abQTze8hJPTP3phdhbTntPN4+jrl yBvqYha+N2Igr7XELMXVTUinO4o4Df/BvX+GqvG/gK5WAD7+alql9qqBKRtB3TnIsnpP ElJfhvLnfZUDd2bR/3CLVvPJ/T6PLbpUXw9MyQg/CTJ79I6S5bCGYcIXsu2iUFBRzdKX BZ5/euU0ZiGIVh9zXDCh90BY5PpIW40u+HmYx08Cx9KKvmGgOhT5pprTrdaEityHp4rh gLfknQn8PnLmZ5cPSFs5+8m3IqM14uREd6vmHi7L0S3UHBfYQkUrYEL7Up2x1VW/c+jq gHUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=uHMWkurR; 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 p26si9917296edx.181.2021.05.03.06.29.21; Mon, 03 May 2021 06:29:47 -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=uHMWkurR; 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 S234180AbhECMDE (ORCPT + 99 others); Mon, 3 May 2021 08:03:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:35490 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234009AbhECMBz (ORCPT ); Mon, 3 May 2021 08:01:55 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DDA2861283; Mon, 3 May 2021 12:01:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043261; bh=1CUogshfkN7s0Bq/qnRpzsKxJQ1oJ0HN/0i3rTm6hY4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uHMWkurROknYeGoyCCGH4QYwGUYqc41hrHj9kofk2rCMiYnkEBqEn9FTzXtIL44ji xteBN2OEVYoIcDgtvHiUMnG3DQ2vG7SgN7G8m0Yt1W4BRyDVeI4EcwdXvIUBveRyZn 60WpVbEqs4FEq+eJkI0UsoJdKYeiQhWVSme5kdiU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Mauro Carvalho Chehab Subject: [PATCH 62/69] Revert "media: gspca: Check the return value of write_bridge for timeout" Date: Mon, 3 May 2021 13:57:29 +0200 Message-Id: <20210503115736.2104747-63-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Greg Kroah-Hartman --- 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.31.1