Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2663935pxj; Mon, 31 May 2021 07:44:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwnVNcH3dGMVVje5fdyOj2PoOy9k8/Yz+PKwumf6uyVkUMaPohToMtDgGVHXzI+10ctAJkD X-Received: by 2002:a17:906:5388:: with SMTP id g8mr24014142ejo.413.1622472261275; Mon, 31 May 2021 07:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472261; cv=none; d=google.com; s=arc-20160816; b=qlu0XuUKxtjFrfCYqd20otYDYVaksSeB6z60Q7nqJ/5dU7/9vDztN6vkVUpOwkJwE+ R7tChX50I6dJCjbywbwBVOLT8/YCIA4YUbLQ22I+nFPtV8mW/vH7dgeDZUfG+e//CWId rn68tIgIbv4lCrv4Cyanc31FGP3lRRiRH563iXMWcB4DZANqivDOd12+tEAuJJTu/EgC v0w4OF/+dEh7op8eYqUwbxGTPHh/7x100y+Bv2u9rIbYKs77iiPgcfJnlHlYEtYT0w/y erg5v0j4rN82Q9a0V7nnsSqZFBHFreJwvV0G+YFYwGhr81pX878Ok21x89TvBobBy+C4 GMrQ== 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=f6Mqhvb2xIhbpbxXPGP88Sx03OQysIZegiRUIqsK0qVkeqv3GkiKXFWis71eJuypwF ZYalNKRARcS6yKNLa1w7nN0Cnjo/0PRn2YCP5PNCJwXA1Kvp9zqd46MbGruLcEIHI2rQ 85GKX/nWDtLVl971EVHSU1J+vHj5RtCOjy1g1J9w316lGBEp/oNt8skejJRCFivpA8u4 LgqttjKMoH3piN8zBRPyHMFAPf72UAV0aUNk2PdMr69Em7NTd4Mj4Aa4syYKhjvNrCfX 6YZLl+0hvv7fK/9N8ceoUgB7BX+IYr3KRYx0DvgtPUh3LjcZmERq17gGpSXVYI9oAbE4 b5hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oaV1w7xA; 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 g26si573066edm.102.2021.05.31.07.43.59; Mon, 31 May 2021 07:44:21 -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=oaV1w7xA; 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 S233495AbhEaOns (ORCPT + 99 others); Mon, 31 May 2021 10:43:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:32912 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232116AbhEaN6w (ORCPT ); Mon, 31 May 2021 09:58:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A365761446; Mon, 31 May 2021 13:35:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468143; bh=sVg6SB/8K3yyZdgO0ZP29Rf+pPOA/vY5LIPQHKTVJMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oaV1w7xAK2j2hjdP1tE8FzpvPM27ryHJRT2HAMoEjYBEc0jyZ0mTmprnA0y5jAtnf IkMx5cd9sSvTwv+YrxKgljVQCnSLFAf4LlcPJJxgX5YSopMsnlcRSHadhAfxyjSMMZ CAH+JGzxg8c5av6HJRcp3vU1cpgvze/I/HyHweDo= 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.10 133/252] Revert "media: usb: gspca: add a missed check for goto_low_power" Date: Mon, 31 May 2021 15:13:18 +0200 Message-Id: <20210531130702.528154745@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 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