Received: by 10.192.165.156 with SMTP id m28csp465573imm; Mon, 16 Apr 2018 03:27:33 -0700 (PDT) X-Google-Smtp-Source: AIpwx49D4PugNY1oF8sBS9Mqa9svZxOcSV+qwceRifJPPXtdbNuat5J7Vckh/wWrrOhb8HSowVCU X-Received: by 10.98.155.12 with SMTP id r12mr20934465pfd.15.1523874453606; Mon, 16 Apr 2018 03:27:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523874453; cv=none; d=google.com; s=arc-20160816; b=ZlRzixQ2Zfi4VgkbEuicX5ooHK9mTYK3hPjujwthpHmJSrRDot/VkX6hWItKplg9Pl EX7lITZctW5+JteLSXRNbpNi6s8+lM2WKCTaZiEExSIhvFiKlGyxKj3jocQzUUpjLIbj dFD3z/+YaSXYbJEGQMCC6RK/FhrkN+mAMQGXxpZaBOsJnOzxyjgo6z3VkwL7dMjsCG8k h5YwvisDOArES2aLhxx9e81CzuKSBfzIn1qYWPgb/wkSviXlZw/zdU/KWKG9lswscMtO nj0KmPn6ZkvGpGIhFJURmCAkejf8Oh/Eo6/mIjQQAUbzmf/wa32KnjJGSjZv8wvCdMom xU4A== 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:arc-authentication-results; bh=zC4VCwleAg66Mo6cbv81IvJwgYSuTi9qMDry8nqMszA=; b=dYF/cI10od//Z/HPsgscUO+PtpkB4jjBacHDFclM9Law3hqqOwPz9AkUdUDVeWKOl9 b55fk6qBY/p7XJsCoc7j3/7X4AF131b9PqS3aHdcBFISWNHLAbJBUf4fbuNr3ZWxs6Ik M2r70B/DEjYsNC+kCSdCsi49/B12zWqhMrxPFRAS3tZ5yhwkiH0EGyhgCaJohzTVakPL J4wX70ljRVZPgMYwyzZNfczBo2b/crNdkERHHC8Scbose9qIiYl8WNhgMN97IZ64rgKp SzMriQa+Ezvoy4pAnBJAQNS8bZ7snDiRPyj4wmGTYEtZi63JBdn/VdnduA3YM6lQ1oUH SA7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=onzx8HGm; 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 h82si10590957pfd.288.2018.04.16.03.27.19; Mon, 16 Apr 2018 03:27:33 -0700 (PDT) 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=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=onzx8HGm; 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 S1754348AbeDPKZx (ORCPT + 99 others); Mon, 16 Apr 2018 06:25:53 -0400 Received: from mail-wr0-f195.google.com ([209.85.128.195]:44853 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754096AbeDPKZs (ORCPT ); Mon, 16 Apr 2018 06:25:48 -0400 Received: by mail-wr0-f195.google.com with SMTP id u46so24441089wrc.11 for ; Mon, 16 Apr 2018 03:25:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zC4VCwleAg66Mo6cbv81IvJwgYSuTi9qMDry8nqMszA=; b=onzx8HGmckyLvACcXrM/ZSK7taBuhsKM7Gg8dF1vXCjAWdjWyN7vRjzW07fv245Mij PBEhBtFkNcS6XcLTVQyNl6WzDbpXKCTDjvkbNZ0sN14bwnf/6upsGgTfaoTW0Mg5QsTp kaGrNWicCU7vbyCUoKMpSfiyREWtg080IrcPcuqtRXHMeEwLELI0vyvnaDTW68ezaTxX c9+WMLl8OQBgrfUE01lYMLwnycnpPAz48IwAUjEfDOBr0kcrwVfWV1ocspXRvPBBS7KJ Q+WRSf439OJIvmTrHg44MYj/hbYMLaCZ/bKjApqHakiJHVut+K5HL3BttACbGbOqfvAh Jw0g== 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=zC4VCwleAg66Mo6cbv81IvJwgYSuTi9qMDry8nqMszA=; b=oHg6gqRS5Lmznu6xKWKjES0LCIf58Ljrvj6d475gt9eY1F3ilv2jQgw2FPwWXBoja5 EO/H0XxCq7AMm1O1YS3sTKrQdZBh6cnjbZukhcfbsgC9QyrrXxZGWERC1dQqEIhxT+ec A9tmF6chhlzvlj1PkXTcvzyDBa4lI6Ri1R3ThgzrHQ4Ovi1n/GnYVKGts3nOyTjLdSJM Bo7rw+p799lsYSRHh6Vo/36W9o4NxCVBgM6Mz9XH9sgxPi0c0gnD5GDFrwxIdMDsD6mY agQBNBsbdkvEws/1ke/L6oNgDMLb/TEK74+913K5wPW09LJv6P3/OaWPF/fJKD80yuls VRGA== X-Gm-Message-State: ALQs6tAdlDtISHqlBZOjCdUjKbThGIA9gyv/e+sqKPMW4pb3vcyH4gfR E3YIs+AIL7K2DJqRrdyuMDg0jA== X-Received: by 10.80.130.67 with SMTP id 61mr9337734edf.308.1523874346875; Mon, 16 Apr 2018 03:25:46 -0700 (PDT) Received: from uhalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id q11sm4250074edj.2.2018.04.16.03.25.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 Apr 2018 03:25:46 -0700 (PDT) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 07/11] lightnvm: pblk: remove unnecessary indirection Date: Mon, 16 Apr 2018 12:25:28 +0200 Message-Id: <1523874332-6272-8-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1523874332-6272-1-git-send-email-javier@cnexlabs.com> References: <1523874332-6272-1-git-send-email-javier@cnexlabs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove unnecessary indirection on the read path. Signed-off-by: Javier González --- drivers/lightnvm/pblk-read.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/drivers/lightnvm/pblk-read.c b/drivers/lightnvm/pblk-read.c index 89aed634333a..2f8224354c62 100644 --- a/drivers/lightnvm/pblk-read.c +++ b/drivers/lightnvm/pblk-read.c @@ -102,16 +102,6 @@ static void pblk_read_ppalist_rq(struct pblk *pblk, struct nvm_rq *rqd, #endif } -static int pblk_submit_read_io(struct pblk *pblk, struct nvm_rq *rqd) -{ - int err; - - err = pblk_submit_io(pblk, rqd); - if (err) - return NVM_IO_ERR; - - return NVM_IO_OK; -} static void pblk_read_check_seq(struct pblk *pblk, struct nvm_rq *rqd, sector_t blba) @@ -485,7 +475,7 @@ int pblk_submit_read(struct pblk *pblk, struct bio *bio) rqd->bio = int_bio; r_ctx->private = bio; - ret = pblk_submit_read_io(pblk, rqd); + ret = pblk_submit_io(pblk, rqd); if (ret) { pr_err("pblk: read IO submission failed\n"); if (int_bio) -- 2.7.4