Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2706843pxj; Mon, 31 May 2021 08:43:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN0n537kuiLHj2+PLi6e0G4KOi19W++iXl53yePKgJM7b303cYaz59/0Kn5qK3T6agWa5J X-Received: by 2002:a92:c7d3:: with SMTP id g19mr18714051ilk.144.1622475823727; Mon, 31 May 2021 08:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475823; cv=none; d=google.com; s=arc-20160816; b=yylgFMx/B1pY2lOxlNLSLLs9rc68MVmdnGrNByHE8lLyiwyJrSANPYOMoIcjOpqIr0 R/TMXZQcxNS9luLu+ehZ32220igjgvEgnstEmOvZBctJX2co/vZK7T9x75rlD3aKOPkp qaEUtZ5aFFjsa0oxS30joEaL2vIXT6g3Zx4fA1RULOQSZb8H9LGtfKMHDdtfln2AsQ8i 01X4lM5tSHUWDuqM9p3sKMevCRc4fWRaIkaOOCjg976cQsPKFjiQC2ojkqTphpVc9AgR 26Zl10rByqPhhw7yoi8kCpqnwQb49D9PkqOw6nxvP0UvpkRwv3wL3U0TVWZbipmH8MM9 GIqw== 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=PDlNg3T+gGmBeuNhms8bqCzICAkOoBCt11vLwq9Ai6s=; b=v46aM6FU9yikgiumwy2BODHkYTZV5OxxdzyHUFM0qhOKnFMqm9RTGTSuSAMCOJ9rlI b/MdiKkmFPxe/oR4xzdaG8ZluuRmL4T8JbB0DyLztv1b4Jv0QsJCUc9BHeBQCvsbor4l dVpkkt+iOHRaxFhUGSIWr23BzyCKrb8N6JNBrMpijMsZR760x4j83/PrW3cdFvk2HvAQ OApfNELk3pwrfBfHmOYHpsc24LQLXt9sJ9Pm9UvwinOvhodXueXSWn65kQUm6+uDEgFS CLz12UpnGdMuYU4VuT+5NgLLyNZr/k0Ry/j8cXDfO/Jl24uEQ1dm2orVrHTFunQfpMCD CPOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=gTSU5SHV; 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 x9si13099872ilo.119.2021.05.31.08.43.28; Mon, 31 May 2021 08:43:43 -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=gTSU5SHV; 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 S232796AbhEaPnv (ORCPT + 99 others); Mon, 31 May 2021 11:43:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:47638 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233456AbhEaOZD (ORCPT ); Mon, 31 May 2021 10:25:03 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 90E666157E; Mon, 31 May 2021 13:46:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468775; bh=sVg6SB/8K3yyZdgO0ZP29Rf+pPOA/vY5LIPQHKTVJMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gTSU5SHVJ9AkiWqAdhm7oQid4nELDrt1i5dTPV0ljQ/eZukQTOaZpIFU1KIL5J5DE pyUxdxp2tOqr4EIUbiyC7N/k8Urv0EVAVYKAC2AXih+S5iWhVqfsVK2wbzzWDhkv2y eJE3hVfQa8ARzgZFIBiatbi2sPs3uzDIfwlYt21g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Kangjie Lu , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.4 088/177] Revert "media: usb: gspca: add a missed check for goto_low_power" Date: Mon, 31 May 2021 15:14:05 +0200 Message-Id: <20210531130650.929867579@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 fd013265e5b5576a74a033920d6c571e08d7c423 ] This reverts commit 5b711870bec4dc9a6d705d41e127e73944fa3650. 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 do does nothing useful as a user can do nothing with this information and if an error did happen, the code would continue on as before. Because of this, just revert it. Cc: Kangjie Lu Cc: Mauro Carvalho Chehab Link: https://lore.kernel.org/r/20210503115736.2104747-7-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/media/usb/gspca/cpia1.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/media/usb/gspca/cpia1.c b/drivers/media/usb/gspca/cpia1.c index a4f7431486f3..d93d384286c1 100644 --- a/drivers/media/usb/gspca/cpia1.c +++ b/drivers/media/usb/gspca/cpia1.c @@ -1424,7 +1424,6 @@ static int sd_config(struct gspca_dev *gspca_dev, { struct sd *sd = (struct sd *) gspca_dev; struct cam *cam; - int ret; sd->mainsFreq = FREQ_DEF == V4L2_CID_POWER_LINE_FREQUENCY_60HZ; reset_camera_params(gspca_dev); @@ -1436,10 +1435,7 @@ static int sd_config(struct gspca_dev *gspca_dev, cam->cam_mode = mode; cam->nmodes = ARRAY_SIZE(mode); - ret = goto_low_power(gspca_dev); - if (ret) - gspca_err(gspca_dev, "Cannot go to low power mode: %d\n", - ret); + goto_low_power(gspca_dev); /* Check the firmware version. */ sd->params.version.firmwareVersion = 0; get_version_information(gspca_dev); -- 2.30.2