Message ID | 20190531144636.27843-1-jorge.ramirez-ortiz@linaro.org |
---|---|
State | Accepted |
Commit | 3594bfa265da38dcfbab2312ddaff39711b98857 |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp853474ili; Fri, 31 May 2019 07:46:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqyjCKMe3IQMPwkaj3Q8e3nnFNhDcA5awSYkoWmogK2yhcoMw+V6aJCbGA83iiyb2boEqBfL X-Received: by 2002:a65:5688:: with SMTP id v8mr9727257pgs.138.1559314012087; Fri, 31 May 2019 07:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559314012; cv=none; d=google.com; s=arc-20160816; b=bY3gTMU7EJmr8UVrxKdVFo7vDPyUsXweoDmj+HSBGvHve8TWL9eiPWcWsaBywEAf0d q4IdJstOZyrR3tCu5nwZumkFjgaLawLCMrVquoIVa0WAPykJf2pmHxYx9a1E7HVgr34Y mMm2KIsdpEUc+h9P1G8w3rBbKWQpuoJ3GAt7WyWZvGyo26MSc7QZPE39k0I5rTCrxmWL SO692qo6mz3i15mWUXC3GmoGnZOjWXwzp66PH8O8wejX13H1SRmo0NscBFuYAl5rcTK4 LauuCr0Z5fg/I1DIy5duNZf3pHaHAGmUQMSBlZ3i78fvAHiRf3dqL3pEIr19zVDyA3dy vEPA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=HIhSvs2DPNa6pwhyPdTAckU0464fTVxVs7zCZ8vky70=; b=AOqWuAiDMIZTaaDwcTRWdY6rom6ij3KRyXVGvXiwwyEIj+6K98H9r9XGQks9qzAF9e +jsk67ulSD/IHcYSK4aY1r51taerjtEL8LNWo0gQiMu+kxxW/V01Fusopc8M4NrOXuVo PY7YutHNJbdia5wZZWoYu7tm5v+wOA9JuDOqu/HsHK5qwpVvsrfGJQLT3f7D1cLCIAqa FL1N/npkqnUk/OtRNBxvMvfA9nTxh1Kr0fBH/ucMdObjRka8JhqYaHHAlieg+Qkeef/O F7Xl6mpPLB//0YJ81rWiKGKihQQ36oSqkZfAPMf9SKlZ63rLtPW9wots4tYsintA8Srq d1QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NqsDcGgP; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <linux-spi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s97si6652298pjc.9.2019.05.31.07.46.51; Fri, 31 May 2019 07:46:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-spi-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=@linaro.org header.s=google header.b=NqsDcGgP; spf=pass (google.com: best guess record for domain of linux-spi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-spi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726824AbfEaOqv (ORCPT <rfc822;baolin.wang@linaro.org> + 1 other); Fri, 31 May 2019 10:46:51 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:53498 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726823AbfEaOqu (ORCPT <rfc822; linux-spi@vger.kernel.org>); Fri, 31 May 2019 10:46:50 -0400 Received: by mail-wm1-f68.google.com with SMTP id d17so6236747wmb.3 for <linux-spi@vger.kernel.org>; Fri, 31 May 2019 07:46:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=HIhSvs2DPNa6pwhyPdTAckU0464fTVxVs7zCZ8vky70=; b=NqsDcGgPdxWylte/nrdudw12e2+Lm9TK+16YOs/Xt7XNSRBfKmr1cSde/9z6YrLsqW qvy5SdwAE1oNTb2/Aw5EI9qwCXSrgrYHBXY2H3cNvfYX+azTYlDkSH5oOZXLUb7y9vwb MLLKoaxvYUsZEtDR5kA4DyRdw64SrVjDBfI23SaBLa+RK9OodhW6geypt3wpvkkq8liW VerDWaNO1aoyDCoeChV3PoAsQIg/rFZpZ1Qh7bgRHhz/EyrwIEH6tEG84umRDECnY+b4 1nAoqj01kBPcL8cHQkfgg0+VF1zGFrnY2yJS5BBi4APh0k0tWijNZyavtlrohOIE9HeB 0Y9A== 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:mime-version :content-transfer-encoding; bh=HIhSvs2DPNa6pwhyPdTAckU0464fTVxVs7zCZ8vky70=; b=Yf8ISdeq9Q6gvSXzQJa9U+60+ZmwaIFl5SLovlp4zcZyQIY+mkKWgK/0VntAQDlPqE blxPDoRzBGX8zk+lg0TuDAukw4E9ZO0ePjv4G1dnUBbgqFyoXDqfFDNhljYRocsFS90E IwhPqlihgDaenWrRapR55weomtc+SrPPd1PkBPG530p1JaY6gKHu/3aE/lKTaJE1dQmF IhmzlUIhxpIWwU2jhZaQBNaOLKQrIZRRYzSd0eE8S/HowZBhWlbDy/6U/RTMU8wH1ZH2 a0ECzdm+dPhr0Q0g1OK9NPf6+fgQ0NYCXAoxVPP+94g/9ZDFN18DkTBM0ucI4/mhdu8H L7iw== X-Gm-Message-State: APjAAAUB8wE25+PQY9GcIXrrBDr+Y0AMd2g5pqR66HmpeGwGuT6IPCta m2g08GGeWJA1Hxhzhnbg3lILKA== X-Received: by 2002:a1c:a387:: with SMTP id m129mr2075250wme.15.1559314009130; Fri, 31 May 2019 07:46:49 -0700 (PDT) Received: from localhost.localdomain (233.red-79-146-84.dynamicip.rima-tde.net. [79.146.84.233]) by smtp.gmail.com with ESMTPSA id k185sm12752374wma.3.2019.05.31.07.46.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 31 May 2019 07:46:48 -0700 (PDT) From: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> To: jorge.ramirez-ortiz@linaro.org, agross@kernel.org, david.brown@linaro.org, broonie@kernel.org Cc: linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] spi: qup: remove unnecessary goto Date: Fri, 31 May 2019 16:46:36 +0200 Message-Id: <20190531144636.27843-1-jorge.ramirez-ortiz@linaro.org> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-spi.vger.kernel.org> X-Mailing-List: linux-spi@vger.kernel.org |
Series |
spi: qup: remove unnecessary goto
|
expand
|
diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 974a8ce58b68..314d91b95a16 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -842,10 +842,6 @@ static int spi_qup_transfer_one(struct spi_master *master, else ret = spi_qup_do_pio(spi, xfer, timeout); - if (ret) - goto exit; - -exit: spi_qup_set_state(controller, QUP_STATE_RESET); spin_lock_irqsave(&controller->lock, flags); if (!ret)
Remove unnecessary condition check and associated goto. Signed-off-by: Jorge Ramirez-Ortiz <jorge.ramirez-ortiz@linaro.org> --- drivers/spi/spi-qup.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.21.0