From patchwork Tue Jan 23 15:34:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tudor Ambarus X-Patchwork-Id: 13527631 Return-Path: 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 89BC3C47DDF for ; Tue, 23 Jan 2024 15:35:38 +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=tUcD6YQXYAO9wwCkDZGgvJsFZgAAAJYAeetXpT0mpwk=; b=HrJ51U812YR8ty buB4T12fUhwcQqEvCPW+BL2mxrAotS7C4yc4pAXL5tuEca+gQESXB6tMeefYO4GvpEgTFjEKVy8vk WpyhLZcJ0m6xx1Z8des6UCe+3fof2daNpc6d4SDVjPwoZhKb9Zb9mgjeu+97sTZcH1so9jsL05pEJ iuqXuuR8UDdH0qqNm6zbBJtWxVyVHOrQ4fc7aaDmU260WPvhCzFO7ErjOtQMTB9r+NFF8fxYhmBKE z84znWXW8ze0Pxmmy10q/pRXDVHAIZzMreng3u/6zt7WyvbSRiV1cA+HbRHQc83wcFsZfS9uzRl5a VH4lZtw97yvgF1te//ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rSInt-00H3o7-2c; Tue, 23 Jan 2024 15:35:09 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rSInK-00H3L2-0i for linux-arm-kernel@lists.infradead.org; Tue, 23 Jan 2024 15:34:35 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-40ec3535225so1664215e9.2 for ; Tue, 23 Jan 2024 07:34:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706024070; x=1706628870; 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=RUhqsvib/uXsB8/ZG1ztFE4b7a6LgsyBrst5iQF/X8M=; b=JvveZfNWtzWVm3fMoruW3FB0E/4veNl1084VjqdfK5r/i4ITqTos9F4cX8GX9St2qD k8TPsS5jKmzE91TMpXCBxdF9NGSDhbM19mwuJ5lT73h7a8/1kwMoNZz8nKiXcY0+X2Bq LxZcRFhNU4zaT4maH0rJvipZiV6dwstIjBawvXMimJPe4zgZnVk3uoJbjbDum6nsoOnO BY27Q7Jhxb5BQmiMnSamg005lfAmsYGgS6APulbUTQzCSh/d/slKCOs9+8oauJtKJJ45 Re9d5qLC7KWFu9+I1BrFheHIl9RSmu8CyYuS5O4Rwh4eTKxHNBKlZgc1EIo/vwcVvRyK htsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706024070; x=1706628870; 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=RUhqsvib/uXsB8/ZG1ztFE4b7a6LgsyBrst5iQF/X8M=; b=YIlXULGaXA3iT7f1f8perlRUaDfYrss9TEqa4f8xl3lcOHiFJ1Hdzk/Pqw1vpinSw8 tvfo3xDnuROo6Xa3sj2V6fSxeBnE6Pq6LeGigQrc8XXOoZnmBrU8VR+q5VKcO6QwUmMf MlD+eOSCUT3klkLswsO5k6TFUbLga6wownx72fPdq+y6W4aCQSZ/Nt8N3B+oXG2FF2PK 0JAfLM0YHXxoI3qDhubAKeOMqzQKlYB5asecLpNwCThPARebNTfTkL/jSNQW9z6vZHKe lNfZ8y5t7uF4HzRRaeNoJLxLlO0shg8g+nygBGJ7nzSXEzW0MxWT71/xeC8chIWiEzOD odWw== X-Gm-Message-State: AOJu0YzYR6d0NvcOB3djby83XJC+9pMk29d/7o0AJFiVXbdpkq8y/Em+ A5Tp8XV8Aq1ONosddkll1WsRIDANPnkyXwH0Vm8ucSeFCPpYR/Ifx9SKeSzVtEo= X-Google-Smtp-Source: AGHT+IEUQRFIekgMzpx0cR8sCCVG3w5xgk2OePoUsW4Y1C3evA/H4sd/SqXvBEWXjsocAfm8duQg6A== X-Received: by 2002:a05:600c:1f8e:b0:40e:50c6:3b88 with SMTP id je14-20020a05600c1f8e00b0040e50c63b88mr370700wmb.142.1706024070623; Tue, 23 Jan 2024 07:34:30 -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 p21-20020a05600c359500b0040e3488f16dsm42457536wmq.12.2024.01.23.07.34.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 07:34:29 -0800 (PST) From: Tudor Ambarus 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 Subject: [PATCH 06/21] spi: s3c64xx: remove else after return Date: Tue, 23 Jan 2024 15:34:05 +0000 Message-ID: <20240123153421.715951-7-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240123153421.715951-1-tudor.ambarus@linaro.org> References: <20240123153421.715951-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-20240123_073434_259888_526AAFFF X-CRM114-Status: GOOD ( 10.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Else case is not needed after a return, remove it. Signed-off-by: Tudor Ambarus Reviewed-by: Sam Protsenko Reviewed-by: Andi Shyti --- drivers/spi/spi-s3c64xx.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 9ce56aa792ed..db1e1d6ee732 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -406,12 +406,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,