Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp570076pxy; Wed, 21 Apr 2021 09:30:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz5wz8eq+B8YGzgwUfpjgC/fMjvXSzagB6zao9NSEF9Hpnrj12+LRgR4LJ6e/8BJzKdkdmm X-Received: by 2002:a17:907:1b19:: with SMTP id mp25mr33482906ejc.154.1619022600924; Wed, 21 Apr 2021 09:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619022600; cv=none; d=google.com; s=arc-20160816; b=G/jijIii+2XT7c0BmPRyZ63E8H2ZEe21cFBnpaG8fQILqkjO+OZiO7/aC+hXu7U6A4 tNa6vTTg1EUgcDJOX+IbY46rIMPHD5JtfgN4Pen4zTXA9bPYtS4GhKv0on5tfXGYDvBy d5oYqyGwP+5JYp4Tk44LDQdaO/hjwUPP/wKLEoM6qCHqSah8C7QWu1bPbEpp/Ktsvr1e p/xhjkiOiNXTCKYGXnixNEGpdvT3e2cBrPK7Hz+hTjaDqyffe7Yh8YDltVucjSiUM/V1 2etbmj6A1rxYhazyeeTO/BrVeI4/KfPPxpfNtxE2/ppXdSX7eVD636az4x3pRZCTcloJ qwQw== 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=xpht+knGqbGZA+iN/CCenneEUkhLm30dATYrGCqzt1g=; b=HA3QcHN+VE2/u8loN6xU57kvNUGB/fBq0Z7ct04VisniRxz0OTB2orXsxAJdwnIOrc vldsw1pI3qjqDt2huRO5ceyv/p6Ve+wAxFKTU9n7ghAXpqKR53dj1RieHkXn/tFD+j1i BQaFlnffH7nB43C0gTghYcbv+1aj+dMwPIaVAAM8kZrTHsOHOmMUszJE2BJTHD7LJXIW jfLUIYFORlTxC/Q7gfPJyf2Nw3haqMaW3VAAuGEXBgjfZ/Dzbw3KYkLn3xIq/2Mk6CXG 6hQQR5kX5970qTHRr4iSbc/pjAUqjjzuDizFckP598OsweL9+flJiGdC+pyjM6SqK6Lv wWEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=2QccoBIX; 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 q8si2723989edb.169.2021.04.21.09.29.37; Wed, 21 Apr 2021 09:30:00 -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=2QccoBIX; 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 S242924AbhDUNQ0 (ORCPT + 99 others); Wed, 21 Apr 2021 09:16:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:53066 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238818AbhDUNKS (ORCPT ); Wed, 21 Apr 2021 09:10:18 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 1C0146143B; Wed, 21 Apr 2021 13:09:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1619010584; bh=GYtLgN2svqnMuH2z87XhdlxjjfFs8CTS8yebKaeI9oU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2QccoBIXU4SaH8grWodDwI8C6cHvrugR2qY/xxbfAwvID+skMnlUSYZKowzr4LLki JNSUaP3H0emmomLvCnYagG8TeJAxwgbvxqcd47b/6V6VDlKL5HVpUz7FY+XuzjREMS JV5bpHCoQnwVKvNHvTvVkP6Ey7D0QyeR5g/Co9bw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Kangjie Lu , Sebastian Reichel Subject: [PATCH 143/190] Revert "power: twl4030: fix a missing check of return value" Date: Wed, 21 Apr 2021 15:00:18 +0200 Message-Id: <20210421130105.1226686-144-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210421130105.1226686-1-gregkh@linuxfoundation.org> References: <20210421130105.1226686-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 6f12e46eebf1a7d4fdd66df5e815df96b8f8b1b5. Commits from @umn.edu addresses have been found to be submitted in "bad faith" to try to test the kernel community's ability to review "known malicious" changes. The result of these submissions can be found in a paper published at the 42nd IEEE Symposium on Security and Privacy entitled, "Open Source Insecurity: Stealthily Introducing Vulnerabilities via Hypocrite Commits" written by Qiushi Wu (University of Minnesota) and Kangjie Lu (University of Minnesota). Because of this, all submissions from this group must be reverted from the kernel tree and will need to be re-reviewed again to determine if they actually are a valid fix. Until that work is complete, remove this change to ensure that no problems are being introduced into the codebase. Cc: Kangjie Lu Cc: Sebastian Reichel Signed-off-by: Greg Kroah-Hartman --- drivers/power/supply/twl4030_charger.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/power/supply/twl4030_charger.c b/drivers/power/supply/twl4030_charger.c index 1bc49b2e12e8..dcbd9f03f31a 100644 --- a/drivers/power/supply/twl4030_charger.c +++ b/drivers/power/supply/twl4030_charger.c @@ -805,9 +805,7 @@ static int twl4030_bci_get_property(struct power_supply *psy, is_charging = state & TWL4030_MSTATEC_AC; if (!is_charging) { u8 s; - ret = twl4030_bci_read(TWL4030_BCIMDEN, &s); - if (ret < 0) - return ret; + twl4030_bci_read(TWL4030_BCIMDEN, &s); if (psy->desc->type == POWER_SUPPLY_TYPE_USB) is_charging = s & 1; else -- 2.31.1