Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2753678imj; Mon, 18 Feb 2019 11:33:04 -0800 (PST) X-Google-Smtp-Source: AHgI3Ibak3GxT5qoGgqcMpPHLq0s0Gs6htxuY4xFQ27px7lrC0bBEQUyrvHsbyDjiydKhr/sk0Bw X-Received: by 2002:a63:c303:: with SMTP id c3mr20267733pgd.268.1550518383969; Mon, 18 Feb 2019 11:33:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550518383; cv=none; d=google.com; s=arc-20160816; b=Md39nm2CWct5H9D3cX/2YNV89Ji8rXXpD81hIF5Mbxr+D/au3ognT+q1Hwu1jGkZ/G Wq4UNdkEI6UyK0OnI4F4Tw09wu+R+wPFtEBkOtbnlVPBjmBPWD+KLROWK4fpZaoXWJGN ukOU5vXb8GvDFfl6PPPEr5S95KvDz+qfiRBkCKDXWebVTw2ji1Sg4TFFKmmrKuU4lgkw R4OMEV82It72spCEVd3l3EYUNolBI9pVXVH4bUhBmwGBLEfhuX/5AvqxKWaLcscs5C/K ssmrUryIkYMPtzAXNa6H4OSoFnxod/G3oHPAo2NXsAS0KAenO1Oi3y6HagnHLCRTExON 38nQ== 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=6n68aB9JlkxCY7Qx/DXKciFTQ8435UNi+H1H6r3cxfo=; b=UarGuxhFoQoFvFKR9CcvTwjH+VX2bgdVov35N8aiYeII5z+UeJ882ArLQ/utfcXUAK IuTJHT85Hb1MAUaRcXHG4CQU9ZNnVcDxriDuo3itQH40T73rHpuVY46LHmQuh63ePKgz IH0YTqpWxN0Xw+G1oJk25/75lZXXY9E7twENLDZrZq2YDL0Gf5+TRA8K/KHd50tFHxTL rmqep9h97XNQXRNkLVEF5cQJORojVN3wSxp7Gxh8C8FV533BzZy6PQHEH1e9KuhkpAN4 oSwtuZmK60sD77QcmaZreYo1uA/h/BL6g62WycMe2LhNDAVk0ta02pf+eKNuPr4S3w89 chGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=eQZXCbF3; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1si9104750plp.206.2019.02.18.11.32.48; Mon, 18 Feb 2019 11:33:03 -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=@gmail.com header.s=20161025 header.b=eQZXCbF3; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728566AbfBRTMG (ORCPT + 99 others); Mon, 18 Feb 2019 14:12:06 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39449 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728465AbfBRTME (ORCPT ); Mon, 18 Feb 2019 14:12:04 -0500 Received: by mail-pf1-f196.google.com with SMTP id f132so9036605pfa.6; Mon, 18 Feb 2019 11:12:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6n68aB9JlkxCY7Qx/DXKciFTQ8435UNi+H1H6r3cxfo=; b=eQZXCbF3GrZT2RRhflWWMW4fXJ2vwcxeIJy6EIkYlfjV6gUBjK4XHHHivUEaRfeX2e lNHolIExdctlpSG//zsTCK5Xp4vJWHTLmkKQRyIMHVlLnyRaFACr90b2QfqWtplj26IH xeFusoo24Q3S2b/nqXrmDhN1Aja2khmQKlEOi7qtPnDZXdon5XqgwnaN5ZN0s4UQUpnj 29qGIbSKH2765lGocOnFowK8pDZ91AuEMdPyZLIFQ4Evqn0KF4aG9cg7vB+IwALYalH+ N9ETcxRX5Rhx4BN7Vclj9kiQGz3zKTFOzBZbekJ8Ny7gonqfMZI83zdFEVSYGVx3I85m v7zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6n68aB9JlkxCY7Qx/DXKciFTQ8435UNi+H1H6r3cxfo=; b=lS2hJidwxbSVctDF+yvIzwJjEcJcMCCGwxYgt0UR+MTSKvqTl3HBeQgsjdUI8gtetF 2XFKmymhZHCviSa5dgP+OLPEtByyFZ4/piQat5T0mFwUoaqPA4+Lpynz/EAe3DqrTT6l ISElwaMhYKHJEsV5ZBnjCkvEL3NjRJ1hwtWcZcWEXIC5PaA1TVjbhfhOoYaNg3wkVrPU 77E9DZo6H8LQqkqJ+H5xNjpKdvdeACGtRO7V5nv6HRoomb3Sjao32qaTfIe5VNnR1aZU dpqY9Wm/AZws7gDcp1TeofsUIQ/4TJsmT9lO2+NNcyQiTEcslanqeUKMh5wi56v6SEpX 6RRg== X-Gm-Message-State: AHQUAuYjLSaykJI7W3MkAWM+R86jt+fqTUeUw4tXxyWEihF6QZqejGG4 AFZMh5SfwJZ38inQe/Q6xc72u0mq X-Received: by 2002:a63:df50:: with SMTP id h16mr20596955pgj.421.1550517122868; Mon, 18 Feb 2019 11:12:02 -0800 (PST) Received: from squirtle.lan (c-24-22-235-96.hsd1.wa.comcast.net. [24.22.235.96]) by smtp.gmail.com with ESMTPSA id t12sm33189727pgq.68.2019.02.18.11.12.01 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Feb 2019 11:12:02 -0800 (PST) From: Andrey Smirnov To: linux-pm@vger.kernel.org Cc: Andrey Smirnov , Chris Healy , Lucas Stach , Zhang Rui , Eduardo Valentin , Daniel Lezcano , linux-imx@nxp.com, linux-kernel@vger.kernel.org Subject: [PATCH 02/12] thermal: qoriq: Remove unnecessary DT node is NULL check Date: Mon, 18 Feb 2019 11:11:31 -0800 Message-Id: <20190218191141.3729-3-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190218191141.3729-1-andrew.smirnov@gmail.com> References: <20190218191141.3729-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This driver is meant to be used with Device Tree and there's no use-case where device's DT node is going to be NULL. Remove code protecting against that. Signed-off-by: Andrey Smirnov Cc: Chris Healy Cc: Lucas Stach Cc: Zhang Rui Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: linux-imx@nxp.com Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/thermal/qoriq_thermal.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index 18c711b19514..3e147f856bf5 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -189,11 +189,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev) struct device_node *np = pdev->dev.of_node; u32 site; - if (!np) { - dev_err(&pdev->dev, "Device OF-Node is NULL"); - return -ENODEV; - } - data = devm_kzalloc(&pdev->dev, sizeof(struct qoriq_tmu_data), GFP_KERNEL); if (!data) -- 2.20.1