Received: by 2002:a17:90a:88:0:0:0:0 with SMTP id a8csp4596810pja; Thu, 21 Nov 2019 22:32:57 -0800 (PST) X-Google-Smtp-Source: APXvYqw6Ak2fDBTMP1Ffw0uH8TR9q5VytT1jHzoUMd6a3puGB7liszSYP3TQiZW6TEz6ddBdP8tr X-Received: by 2002:a17:906:49c5:: with SMTP id w5mr4283517ejv.21.1574404377261; Thu, 21 Nov 2019 22:32:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574404377; cv=none; d=google.com; s=arc-20160816; b=ZRv9J6rlJR4glHpTClT5c9DnxGfM5JR3AZcSahxd/tFLRyPdHUjLsa0c5k93SdRYr0 reDOs1NBkD06pn5WZ/kzcAXme7f7CkxE/6d8JoSbgYNoKG52n7aQdLSw/yr9ZAhYKW38 cNnA+cLRhv6NAGwU3UUuDJ/FS2eXZqIkxFOQY1yIIRZf98lAoD65C6W0SwmsaJDV/KqJ b/cwm7no/vCkrMoTpP6a46WgAAQFU3a3+gPsdFW6GgKOb6snSNIvSqZA6tWD3mXMBQD+ iTWrY21a3rPyU3FcDMzOJrOpy2LhuQXh5iysJglCXQJbdCKHRAAVwYbdtsyjuDtykNAC rH+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=n/zaNKG+VL4kpTAe9VR5X0H4oLYKu+wFzk21ICgWj/E=; b=Tb6aBQ5WBZ/hAi/kM5mzDhQbEAuel+EXyvlKCrVj6Q5m+S9uipJPtRY4EC6NoCI9YI eV5TgLqgM9IyjvWdY/pt6244GrF4Vr9sn/4eG/2FtgzHgwpjXJ0tiFt2yH1ssTiQ9j1S sGlQHzno0PmIAaZDUjl1UoWk51Jcguo5wPf63SSy39/yGfhbQjHmg7YCqjlWMd79l4bw XW+Qd5wFO2/3TvtU9XxOzAJqpbCKjPzCyIk2qVHZvRomMSX9siL15l72MqkZX1Dhn/Ry hZwgpdnRXJJNjisUSOSvo4u2xygFBQ4Zhga3AJIhSjwBJfoFAiI36gA30flhYRfpp5tr npXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HbFQL4UX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f5si3950173edf.232.2019.11.21.22.32.33; Thu, 21 Nov 2019 22:32:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=HbFQL4UX; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727295AbfKVFtt (ORCPT + 99 others); Fri, 22 Nov 2019 00:49:49 -0500 Received: from mail.kernel.org ([198.145.29.99]:54004 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727235AbfKVFtp (ORCPT ); Fri, 22 Nov 2019 00:49:45 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2212D2072E; Fri, 22 Nov 2019 05:49:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574401784; bh=uqhPIXMKfLyTsWEAtu6GVSKRK/3Tjp8n6QMtSKSox/0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HbFQL4UXR78M7FPBgxtw5nO9JImp1LCa+Q1ZPplWGTdIMbhukUci5/VcHHdgEcfRj yI+U2+peUbdVpGeontsaPF0tc6t8uzkv9uTMJilaPXDOaeOOkb9aKZzClMblbA4bw6 N4kUyqBr30WaL4yTRuEzZSbL+VnPwK+n9uY7a7Ms= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Thomas Meyer , Kevin Hilman , "Rafael J . Wysocki" , Sasha Levin , linux-pm@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 033/219] PM / AVS: SmartReflex: NULL check before some freeing functions is not needed Date: Fri, 22 Nov 2019 00:46:05 -0500 Message-Id: <20191122054911.1750-26-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191122054911.1750-1-sashal@kernel.org> References: <20191122054911.1750-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Meyer [ Upstream commit 14d338a857f05f894ba3badd9e6d3039c68b8180 ] NULL check before some freeing functions is not needed. Signed-off-by: Thomas Meyer Reviewed-by: Kevin Hilman Signed-off-by: Rafael J. Wysocki Signed-off-by: Sasha Levin --- drivers/power/avs/smartreflex.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/power/avs/smartreflex.c b/drivers/power/avs/smartreflex.c index 1360a7fa542c5..8760477d0e8af 100644 --- a/drivers/power/avs/smartreflex.c +++ b/drivers/power/avs/smartreflex.c @@ -1010,8 +1010,7 @@ static int omap_sr_remove(struct platform_device *pdev) if (sr_info->autocomp_active) sr_stop_vddautocomp(sr_info); - if (sr_info->dbg_dir) - debugfs_remove_recursive(sr_info->dbg_dir); + debugfs_remove_recursive(sr_info->dbg_dir); pm_runtime_disable(&pdev->dev); list_del(&sr_info->node); -- 2.20.1