Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6878278ybc; Thu, 28 Nov 2019 07:02:58 -0800 (PST) X-Google-Smtp-Source: APXvYqx1SMqgCG9kysdAxHIC0zk88T2zfR/7aGYIIvyCzrbd+jesG2NRuTLvjiHBUA4sC9BctufH X-Received: by 2002:a50:c408:: with SMTP id v8mr38635557edf.140.1574953377967; Thu, 28 Nov 2019 07:02:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574953377; cv=none; d=google.com; s=arc-20160816; b=IvtzgO6tI6z9vEhkLW8d4gZDkfzABRN8fi1Ss7LFIptyVUg+VqsCho11DzxI6IbfAp UYiuaKWO7LF89UKaixnb/hYefI+QZ2llJIJjAVoazycFt422zacRQ0Jl25H/OrdI6ZO5 dBOqxWWfsbY9G437KqZrLNcOOQAMbPLUOfnkxT6btrpcTCvcoxfVrmmAr1uyE6VYehvr EubijSMQkeaMsDPyKiBF04LdW/susmd3gEvKq6ejdLx9jsix8taIYkn/BF6hX05P0p3E bOUvGDBOaCChWb/lULreoJxWnQT1iU7E+1ntSxQYDCBH95XaDotsN0EEY1sM7sbxpt+5 7bmg== 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=KUBWPv3JkV5Q2rpwN8YKM1iLDpQKFkQg1V9KmI5YIqA=; b=LmlMZgoWj7AyPxWFVeI+Q71Mrr/UZ60oG+lPwOugsBIYD/FJSYMg226Y29t6P3kUyP PMmcWqbvwNHjtew0xPNPhxBb1aKg7h3kzOybftXMR+0R3I1IQu6QfyuOQoD4ymofWvhu DDCrPX2mqujw2Uem7zJUibNMHvWLPxcAbet0GsUVp/qGb0JDz9ubVjK+s98K2wjM9QqE 0q2u8T4B29JYa3N+k0ITpMwENF9z3WNx1ro6N80ovPYjQ95kBlJVigsqYrYNdKDVS5dP fBtZteDpcozPQvOKNFLGej7NgAWboCugVKR4O7WTfMrMsmuhZHyhCjt+ZmmZOdk/weJm vcUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=gnMSL36D; 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 ci20si12160343ejb.20.2019.11.28.07.02.29; Thu, 28 Nov 2019 07:02: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=@rasmusvillemoes.dk header.s=google header.b=gnMSL36D; 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 S1727631AbfK1O6J (ORCPT + 99 others); Thu, 28 Nov 2019 09:58:09 -0500 Received: from mail-lj1-f196.google.com ([209.85.208.196]:41919 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727554AbfK1O6D (ORCPT ); Thu, 28 Nov 2019 09:58:03 -0500 Received: by mail-lj1-f196.google.com with SMTP id m4so28806118ljj.8 for ; Thu, 28 Nov 2019 06:58:00 -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=KUBWPv3JkV5Q2rpwN8YKM1iLDpQKFkQg1V9KmI5YIqA=; b=gnMSL36DxoMRWV5dmkqn64lmHepkAi/UCIfJXPlQpgy26UZTuq1MviK2Qwq0XpyewR plZczgrN/M/mdswUw9R50HmZN2QjhZiXFk34AyfSzViZWRYCFTF5rtIK7G5qaiGCCR/K jIf31rx5xnRhK1BzOC7zTsNV7YczeL2VTJkhM= 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=KUBWPv3JkV5Q2rpwN8YKM1iLDpQKFkQg1V9KmI5YIqA=; b=PEVjXpS1Kl7PjkeRkYGURp8oYO4mnNV573uOOR+GgtE9ZuhGVXxJz217UjNvJFiyWM xCXhdBGQWjv8K6dUyQVLX9KMY5TuKjTag/nvqAhSJe4JKU8+J4jC/v7GQh/IygS4ujv5 D9PBAvvZBhgDex5hVrOTOIRyolGc5gygj1YasfwdT6aqJx43vv/q4z6NfqgbKqvPLDHC BMb8mwUeWrsXEFNamAfXTdZyHC7qxogsDnFyoUWpCKnphjBy461D74HAvZQt9rIP0FDM faEzM0r4Tlhn/+Jdcmkdp5lnGdMJiVNKwZkRrEPDiMIK+xVgsIvveXW2SwWMsXgzV2xV h9KQ== X-Gm-Message-State: APjAAAU0Bt+e2cfcQdh8Ni+ih7VVBzBkjAueLxucOvvYRNDW1Uf92BNe WdKrrFSNkkE3hCXCixxkL9sVrQ== X-Received: by 2002:a2e:b056:: with SMTP id d22mr22072255ljl.73.1574953079877; Thu, 28 Nov 2019 06:57:59 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id u2sm2456803lfl.18.2019.11.28.06.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:57:59 -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 , Timur Tabi , Rasmus Villemoes Subject: [PATCH v6 42/49] soc: fsl: qe: drop pointless check in qe_sdma_init() Date: Thu, 28 Nov 2019 15:55:47 +0100 Message-Id: <20191128145554.1297-43-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191128145554.1297-1-linux@rasmusvillemoes.dk> References: <20191128145554.1297-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. Reviewed-by: Timur Tabi 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