Message ID | 20240125145007.748295-9-tudor.ambarus@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 521EBC47258 for <linux-arm-kernel@archiver.kernel.org>; Thu, 25 Jan 2024 14:51:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=5B3cP2CP0PnSPZtjTg5S0rFpxODXefuRKBUdBa/c16w=; b=2rqAakj6YBj+T/ 65FVat/moiWLAm5fEWr37p1ToV62NdDRPpJ+M7EXgyHDKFPgucBBcHg5wAFlrHkpIucmArGekAmok +hStrNhxcdP5Lp71ERyLmQ7gzeLLFLt4lXbzaEF9hqWJKvmzmPm1hkIV0iuDscTP7Uc6MujC9ETfR IeXPDjYqw/zwCD/rjvHufSHuwfh7KD7/N+/HYhJJ2IHIGm7H7Es13csVq6kdaj/tLYIj2N+D4tnNi LnJgD1ZjAJUNd3oxmAuOXq1kK3pbsC/vm2B8+dDFxKIA6ejOIqLrmQ7isLSMNf+2M3UpwvUH3SXFz FSz0+3ykeDhPrxsxQGVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT145-00000000SKJ-32vL; Thu, 25 Jan 2024 14:50:49 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rT13a-00000000RwA-4AVG for linux-arm-kernel@lists.infradead.org; Thu, 25 Jan 2024 14:50:20 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40ea5653f6bso70947265e9.3 for <linux-arm-kernel@lists.infradead.org>; Thu, 25 Jan 2024 06:50:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706194217; x=1706799017; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=M4fz9oIGVOkFGai6Cp4lYWrVDrbEsI2M8XA5EnCVP48=; b=LF96qf+TOkLQ2O4nvILNZ+tSvH70j8tl76mE16/NQy6Qe30ArCwrOUnKjE1eoR/WTF QNp+vD4c/Lq2/v3E6P4nsAnW5TNoqUiQFDQOTVAcMjMsdYbMDjWi/TCU+uM1v7UqmiKD 2RK0wP0fWEbpYWQX4IOyo6Nnpf67HwbHKx7nYsn7C8+gZCdY6wv5N8TqHpGOllYI/Zj+ rgj2bahUpEtsdGjMJfnWrpWNenEz9833jIPdc9enZNF2nM5CbqUn5I2FvyjmLb0bA127 5qE5bOQ+C6jU2PA6mlxSsKXKXjzXFCax66SxJ4VyTw3zSP92bDKlS6VWCtMJGygTgZWT wNYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706194217; x=1706799017; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=M4fz9oIGVOkFGai6Cp4lYWrVDrbEsI2M8XA5EnCVP48=; b=AbIbGtZ4ZV+A13vYX18XGn7LUKlkGn8hRLFAV3ioW4WXjpr0DGb0Yw0A7fh0Ve92jB tkn5bqkppK95tLmpPsb/qiIHwKWuuZdNjDOdHv9461HO1OHV+c3b9MbPi4aofdXqpY4y ZGKKCwupXmMBuZU94h5W3T55lznZSl3edv1PsnHErR2tPtN9t0xAIq5jsQeW14Z1olCV H6Z+HYdXMz2UanAJg/NzKidZECvBOTUmxkAsijpDPKM1fFoHeJlnqdVHmNkEBYcHFJxE 4d5IL/tDj0hfOyS6zNHQw1mpdl1OlAPED7EbQr3+/4+M64qUbKMX8Lchwf8Cw9zsRhPA 1vJw== X-Gm-Message-State: AOJu0YyP/uGKjgYX/KXczKdVT308vlaE/OSgXTQn33SsNx1FdpSkNIjB Tm91EMVwOPacgWJh1+TvOsSn45YFCTABSU2WOAKiqYIHzQGU1WDInSH8TO3lWYc= X-Google-Smtp-Source: AGHT+IH59qBBDJYZqajM3gXZkrFzpTjDsYhh2UwC+Mu4T262n+h9h/yXectShSlu1o5IM3xVnvhLGg== X-Received: by 2002:a05:600c:4510:b0:40d:877d:ca9 with SMTP id t16-20020a05600c451000b0040d877d0ca9mr632702wmo.104.1706194217327; Thu, 25 Jan 2024 06:50:17 -0800 (PST) Received: from ta2.c.googlers.com.com (88.140.78.34.bc.googleusercontent.com. [34.78.140.88]) by smtp.gmail.com with ESMTPSA id v17-20020a05600c471100b0040d91fa270fsm2875875wmo.36.2024.01.25.06.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jan 2024 06:50:16 -0800 (PST) From: Tudor Ambarus <tudor.ambarus@linaro.org> To: broonie@kernel.org, andi.shyti@kernel.org, arnd@arndb.de Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, alim.akhtar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, semen.protsenko@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus <tudor.ambarus@linaro.org> Subject: [PATCH v2 08/28] spi: s3c64xx: remove else after return Date: Thu, 25 Jan 2024 14:49:46 +0000 Message-ID: <20240125145007.748295-9-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240125145007.748295-1-tudor.ambarus@linaro.org> References: <20240125145007.748295-1-tudor.ambarus@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240125_065019_094560_3EA2CBBA X-CRM114-Status: GOOD ( 10.59 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
spi: s3c64xx: winter cleanup and gs101 support
|
expand
|
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 137faf9f2697..1e44b24f6401 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -407,12 +407,10 @@ static bool s3c64xx_spi_can_dma(struct spi_controller *host, { struct s3c64xx_spi_driver_data *sdd = spi_controller_get_devdata(host); - if (sdd->rx_dma.ch && sdd->tx_dma.ch) { + if (sdd->rx_dma.ch && sdd->tx_dma.ch) return xfer->len > FIFO_DEPTH(sdd); - } else { - return false; - } + return false; } static int s3c64xx_enable_datapath(struct s3c64xx_spi_driver_data *sdd,