Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp2487273ybx; Fri, 8 Nov 2019 05:07:29 -0800 (PST) X-Google-Smtp-Source: APXvYqx349/REkRtW8vEoqosmxcLXIYwhf0Sdo8yO4G7cNBFG6QkXkDFo8ZINj4bAnXDsi0Ie2kn X-Received: by 2002:adf:ce05:: with SMTP id p5mr8051116wrn.48.1573218449733; Fri, 08 Nov 2019 05:07:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573218449; cv=none; d=google.com; s=arc-20160816; b=rL4/3e13b/2SJwEwINXC6qpIcG0o1VVfhMpq3eKxJhfRFtR0wrzoYlbaXU4LXlVoE/ /lmgkh7H68z86PkkulMNa6p78oo9ZWGqURrwFIm89oUQ7QXoq3bhYs+eymiYwL8Yqw8f GBZRGT0N/pBuNtGjVu0oZzclJcoMJF787Zdph3tjy4G/BqtimrEHNfPv8g33mMGi2diJ 0T0LHk5oTBBL2fOT1V0H+A6lpxZZxg9SIa20WAKHB9TXyGHnr2mxEZRwxhJMU6E+Zm9+ RyCik8igd3yu05dG0kw3MdCvPUW1DQP8YIbE/PAhYfkQo2yqbj6F2nGrs8tanhzcSLM3 p3tg== 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=FL4wefDICHo32h9247H9jmqyY6zv5MUtAqMoiveQx9g=; b=VficaavjkPeUA9gwpVodjpUFzcyJghg7oHY6ujywZkh9Y9WhWq4kreHhB69L6+VYYS vkg8U9OWNVLlwdiW/mFmYOpU+yGnxJ/78NJnEJ3iNB+laMuTenqmImM8WNRqe2tsx+K/ E8UAegZyi87RxIJul7EvJkije2fEff73q3ggT5OC3ocd05nCNMutTIL4CbjFkIWoUFdR 81Vgkz3W7WNerYxt6NC170C+QvxBh4N6Ej++iDEH6nmr0qoT8CJ6Ec/8kT9WrCr/gfwe bUDFjfSIIx/dKcMbbkAz52gRW+N7qg07Dm4T/D2UvIQPSyJzrA0Jz8e4oHlDtHHQ9NtW yKZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=WM3db+UZ; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j52si4842448eda.438.2019.11.08.05.07.05; Fri, 08 Nov 2019 05:07:29 -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=@rasmusvillemoes.dk header.s=google header.b=WM3db+UZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731679AbfKHNDQ (ORCPT + 99 others); Fri, 8 Nov 2019 08:03:16 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:43797 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730596AbfKHNCV (ORCPT ); Fri, 8 Nov 2019 08:02:21 -0500 Received: by mail-lj1-f194.google.com with SMTP id y23so6103217ljh.10 for ; Fri, 08 Nov 2019 05:02:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FL4wefDICHo32h9247H9jmqyY6zv5MUtAqMoiveQx9g=; b=WM3db+UZNX0xYRn8xFInkWCZ/gGBxlESeid8dXGQU2p17G2KmYfmQKEJM/6nxdjVkz dcCfwIBMRd3gygzYVu0IHJtJgUPU16y1N7AQMDT6+xP5d6gPmR+R/fMCMBXpDEu/jhZJ wIS2GKrKi2LdTuVlyChuB3CdPaAYkTSGlI7eg= 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=FL4wefDICHo32h9247H9jmqyY6zv5MUtAqMoiveQx9g=; b=gQ7e8Oubps4qMaL3mtInlkRwQOkgL/h1Nzv/VSK5H9qQXT8lcvDuO7GKir9gLxvbBs B8MQ0vw3G1eKEKLXnsh9c7kaSljui8o/js+BENnfgJs9OXvVFpjBIYvrk5gkKZzVFp+R ADw9rqS+H5THAwjLLkuuAxWik354rKw8VqlNlvs0Cndxqtgd6EL81oFgE6fEBcwblLW5 iUBo1Zx3Dth3q/eQFAK6WIpfTC+rFLixrEF8xlAMFBimtTHQkml/WhFIVcWTp06vrRrl QsRiO4zs5PZeGqXnF8WLL1/R0Wp5xW8rMKLnoqfex9Na7zARHXtkudf2NZ1zTXPMLFxE 7qyA== X-Gm-Message-State: APjAAAVbdycxto8hLn6J3l6jD6eManJ7wlNjoObz+wRPTmlrINyuv/Zs h7456WC3uwP+EzZBCX2qSrqb8w== X-Received: by 2002:a2e:9a53:: with SMTP id k19mr5922502ljj.246.1573218139469; Fri, 08 Nov 2019 05:02:19 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id d28sm2454725lfn.33.2019.11.08.05.02.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Nov 2019 05:02:18 -0800 (PST) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Rasmus Villemoes Subject: [PATCH v4 41/47] soc: fsl: qe: drop pointless check in qe_sdma_init() Date: Fri, 8 Nov 2019 14:01:17 +0100 Message-Id: <20191108130123.6839-42-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191108130123.6839-1-linux@rasmusvillemoes.dk> References: <20191108130123.6839-1-linux@rasmusvillemoes.dk> 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 The sdma member of struct qe_immap is not at offset zero, so even if qe_immr wasn't initialized yet (i.e. NULL), &qe_immr->sdma would not be NULL. Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/soc/fsl/qe/qe.c b/drivers/soc/fsl/qe/qe.c index 5bf279c679ef..96c2057d8d8e 100644 --- a/drivers/soc/fsl/qe/qe.c +++ b/drivers/soc/fsl/qe/qe.c @@ -367,9 +367,6 @@ static int qe_sdma_init(void) struct sdma __iomem *sdma = &qe_immr->sdma; static s32 sdma_buf_offset = -ENOMEM; - if (!sdma) - return -ENODEV; - /* allocate 2 internal temporary buffers (512 bytes size each) for * the SDMA */ if (sdma_buf_offset < 0) { -- 2.23.0