Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754879AbaA1Ih7 (ORCPT ); Tue, 28 Jan 2014 03:37:59 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42427 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754796AbaA1Ihz (ORCPT ); Tue, 28 Jan 2014 03:37:55 -0500 From: Alexander Gordeev To: linux-kernel@vger.kernel.org Cc: Alexander Gordeev , Keith Busch , Matthew Wilcox , linux-nvme@lists.infradead.org Subject: [PATCH 07/14] NVMe: Make returning value consistent across all functions Date: Tue, 28 Jan 2014 09:38:53 +0100 Message-Id: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Alexander Gordeev --- drivers/block/nvme-core.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index f03f123..e004c09 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c @@ -1315,7 +1315,7 @@ static int nvme_create_queue(struct nvme_queue *nvmeq) nvme_init_queue(nvmeq); spin_unlock_irq(&nvmeq->q_lock); - return result; + return 0; release_sq: adapter_delete_sq(nvmeq); @@ -1431,7 +1431,7 @@ static int nvme_configure_admin_queue(struct nvme_dev *dev) spin_lock_irq(&nvmeq->q_lock); nvme_init_queue(nvmeq); spin_unlock_irq(&nvmeq->q_lock); - return result; + return 0; } struct nvme_iod *nvme_map_user_pages(struct nvme_dev *dev, int write, @@ -2414,7 +2414,7 @@ static int nvme_dev_start(struct nvme_dev *dev) if (result && result != -EBUSY) goto disable; - return result; + return 0; disable: nvme_disable_queue(dev->queues[0]); -- 1.7.7.6 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/