Message ID | 20240126171546.1233172-8-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 30CD5C47DDB for <linux-arm-kernel@archiver.kernel.org>; Fri, 26 Jan 2024 17:16:26 +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=DRmzXij9A1TVI2jpvWOY0ZvduhnPXsbo/oHFQN0thdw=; b=n/eUuqu5BQavI8 /woR7WRMAyUNlDz73uC8pGWJ6Lf47F3+M/6TlhXGQ5P0mm43SBmT+UKcy62gTyBv7+hpIjwHRvHIm rwX+U3NzbZoJWeWuR6+q6A//BbEeBomFZ5n8eONr+aGgPc9EKPCGY7sIMo1VF39BEJbt7kgxQoPlK NwoHD/Mog1liQKn9Q/OuXqkz28wewDynmIiWUvC1qkp36nWr0dx2foGYul3iM0Qv5ViHjWtvkAV7g k7E9t1pEKBk6sZXdCBx4xbE17u3EMAtZwHm5Xn2yPSOghY5T8ebSdKLKFzSmFtQjg4roM7EQxsnc7 qzxO0gr/53wlpLj/GigQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rTPoN-00000004phJ-2WBn; Fri, 26 Jan 2024 17:16:15 +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 1rTPo5-00000004pS2-3GgG for linux-arm-kernel@lists.infradead.org; Fri, 26 Jan 2024 17:15:59 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-40e60e137aaso14174585e9.0 for <linux-arm-kernel@lists.infradead.org>; Fri, 26 Jan 2024 09:15:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706289356; x=1706894156; 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=byLqjPGX2U9floq2ktVuyo0IP+fRFNCCMq67reNTymU=; b=cWSYUwCisLU64Ff24Icn54STdWBMLqNTauF3PVnCfZvDwKk+xigvUmM9zuZPhQiJR5 z6/uSki/8BQ1a8Iyk/hy4xFhdRmtHrLNrR64xljrIDJGHOWOhSiPSqc7wiaUdznD8obu +XD76S9g/xF+1j2aRkLvDsst/5+QEZWPEugPW+hmxuJJrO6AJMdEjH2c75p5d5/DFpnm vAY+FwbJS4EaX4Q/CG/kI8k2k0pITCrbIZVlxegRuCuvwdO1aByFsxPJtKKbDlznp2v0 EiC42EoEekGqWgvcufEXsByqw+4drLrKNtLF5fmq6mcaUgqS9gWXQbWAgnXUYjmFInh8 RQ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706289356; x=1706894156; 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=byLqjPGX2U9floq2ktVuyo0IP+fRFNCCMq67reNTymU=; b=OBErVH3w6R8Fo0mczHLEmNPvUhVmeojJQxlno770Rlc/ghHLy98aGpAhXcOEWTsYkl 19Ru8N/RlEk3kQL/4I+/swMqqbWHpo533zxfskDUbmKkktU3ceA0CD+MBVLWLYX009xS 6ix96gs+SF/n3AcoB5wppt5KG0L4DYJSDhWqQMbot+jEwX8mPx6qeqIlWWMzJ9pZgHA3 EWDTcHtbrIiX2FEp3TKPW92U1BAjtA/xx3MSDwAMKvQPidU0tGk2ogWQRixqAwEgj+Jl /T9U/shs7g16m0gLi3hJQNcZqc9yfolFckemphOROCBQ9ZO12XpR7831Dk0uM4VxqCmT 5jxA== X-Gm-Message-State: AOJu0YxVnZdhePWEHWpsSGbWoDk95tbfYXBJdXo81K6xkcWPs/L/umCU rn6kyYgS32w9qsFJJT6Ic/yY6B9HfA/4ejOPypbIeEpzoa2YVVxSjyhuaJ0XcLg= X-Google-Smtp-Source: AGHT+IG83hVVkWCOFUgF0c27tv+I8VxsYGHb2dXyr0ioweVMaw0+DSQAY0Eif9VfosCOeNfsa8sQKQ== X-Received: by 2002:a05:600c:4fc2:b0:40e:3edf:1053 with SMTP id o2-20020a05600c4fc200b0040e3edf1053mr94867wmq.17.1706289356632; Fri, 26 Jan 2024 09:15:56 -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 k10-20020a05600c1c8a00b0040e451fd602sm6287286wms.33.2024.01.26.09.15.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 09:15:55 -0800 (PST) From: Tudor Ambarus <tudor.ambarus@linaro.org> To: broonie@kernel.org, andi.shyti@kernel.org, semen.protsenko@linaro.org Cc: krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, jassi.brar@samsung.com, linux-spi@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, andre.draszik@linaro.org, peter.griffin@linaro.org, kernel-team@android.com, willmcvicker@google.com, Tudor Ambarus <tudor.ambarus@linaro.org> Subject: [PATCH v3 07/17] spi: s3c64xx: remove else after return Date: Fri, 26 Jan 2024 17:15:35 +0000 Message-ID: <20240126171546.1233172-8-tudor.ambarus@linaro.org> X-Mailer: git-send-email 2.43.0.429.g432eaa2c6b-goog In-Reply-To: <20240126171546.1233172-1-tudor.ambarus@linaro.org> References: <20240126171546.1233172-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-20240126_091557_843347_A6B2B83E X-CRM114-Status: GOOD ( 10.22 ) 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: straightforward cleanup
|
expand
|
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 9bf54c1044b3..bd2ac875af59 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,