Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2694650pxy; Mon, 3 May 2021 06:07:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyNX4JfcQAbS37QprLqHcSFJuzhboY95LmCViLCqCms9oriFeIZ6hlI+ErLXZSp85VlWRp X-Received: by 2002:a17:902:d386:b029:ee:bf5f:c037 with SMTP id e6-20020a170902d386b02900eebf5fc037mr10458997pld.31.1620047243933; Mon, 03 May 2021 06:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620047243; cv=none; d=google.com; s=arc-20160816; b=UsKLnvlQWPBOFbf6q9JGmhUYmpXbvz4mkzX5pSk+qdpKKVjNMb+MPYCA2cS7229Tb9 zClpC7Jx1x1DAiZlHOL/D+kOC35DfxmvWPe0mnhm0yA1g4JR/Nd+6KlD5MT4LQNtXqo7 xMSRUgMVvP3+kk7MTRHD7tJ66BmTHiAOIlX2q9mXl6GnmuY4DNoUslIpOZgtvfXlDU66 uwRPAuTWITs1zB+iQ43uTuDpUh5ELyu39bHk5103WX3ZFQxz38qgoUlnrI6gtzZz9QMK 8m3oHsQOrJHFZ1GRIJkFjc1xvD+r4e0jx3FKcUG1oPtxQBAe04Wo/V3e/Gt9CISTi0JN 4fpg== 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=8ySE6T2CqUvVui0O3DhdB+2V9SR2zXe490bUGGqJ8q0=; b=GYpOkfFTadEoOKE4N8C9CY6Wb/gCczyPePbkufz8Vy1pA081fXtr0s1z/0AP5GK6hB B/zdXpQeWTocTje8AvD4ZR6tlfYlxPOfpMjfPm68B29L36u9GwecdQN+CPWwxKvQ6Buj jZA03czMPMtNFX1eRxGMLQh9zfTkHMFd2o8kKDjINCwLlpHo7RtB3CIhPZfQekpVP3bv lKdS5+vc7o+jsYdrigLzeeku4ipMM0NbgT6InrXiwcWy09iPH2WqmWW/tn6hPqYda1uz v3P7l+fP2lA6mq1KDF21+k74sdi13JE9a5GPVQdh9NMLSLev3lBCVxux7+TzOdWNbgmq Cpng== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=B2qSvSG2; 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 m9si15081215plt.7.2021.05.03.06.07.08; Mon, 03 May 2021 06:07:23 -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=B2qSvSG2; 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 S232918AbhECMBX (ORCPT + 99 others); Mon, 3 May 2021 08:01:23 -0400 Received: from mail.kernel.org ([198.145.29.99]:35224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233821AbhECMAt (ORCPT ); Mon, 3 May 2021 08:00:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6AE8861369; Mon, 3 May 2021 11:59:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043195; bh=dBWuzmYIceLuH1c76CsCnSLX34uWHpW9cjv0Hvb59lE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B2qSvSG2Zu2lPwAB9WRFRRyoZiX591/6kNuJCgVce/Yboy5TL/5N078z4wiwHQHDq ifvF+5bVgCdomhccj9yzOKQAEGoWUzQvhaVxm2efeLW0nv9LeHRtFMjudDwGEXhmrt 6KAUif0NPldP948MpETGBcTw0yXUFSkrrjgh+huc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Mauro Carvalho Chehab Subject: [PATCH 06/69] Revert "media: usb: gspca: add a missed check for goto_low_power" Date: Mon, 3 May 2021 13:56:33 +0200 Message-Id: <20210503115736.2104747-7-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 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 Signed-off-by: Greg Kroah-Hartman --- 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.31.1