From patchwork Fri Jun 3 05:02:47 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Miao X-Patchwork-Id: 1729 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:55:00 -0000 Delivered-To: patches@linaro.org Received: by 10.52.181.10 with SMTP id ds10cs418013vdc; Thu, 2 Jun 2011 22:05:05 -0700 (PDT) Received: by 10.236.78.99 with SMTP id f63mr1934238yhe.518.1307077505148; Thu, 02 Jun 2011 22:05:05 -0700 (PDT) Received: from mail-px0-f172.google.com (mail-px0-f172.google.com [209.85.212.172]) by mx.google.com with ESMTPS id n61si6305061yhj.17.2011.06.02.22.05.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 02 Jun 2011 22:05:04 -0700 (PDT) Received-SPF: pass (google.com: domain of eric.y.miao@gmail.com designates 209.85.212.172 as permitted sender) client-ip=209.85.212.172; Authentication-Results: mx.google.com; spf=pass (google.com: domain of eric.y.miao@gmail.com designates 209.85.212.172 as permitted sender) smtp.mail=eric.y.miao@gmail.com; dkim=pass (test mode) header.i=@gmail.com Received: by pxi6 with SMTP id 6so916605pxi.17 for ; Thu, 02 Jun 2011 22:05:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:sender:from:to:cc:subject:date:message-id :x-mailer; bh=D5dyndTtnkBp8G4BA2Yl+XZbNmsCeVD51bsB9Y2GvgQ=; b=rSlSaMvegFz250gDEd8ORbZWb2PjRffmeFSYXtXEBhviHOmG+GRDNOvaVKX/wYVPho 5rfeP/4M5GZ8MtFhI1yaqKBgWglqolkvMJUZO7vile56L7t0FgM8tulIK9YgT3xPTEdS DvSgwIrecXRwcK+E4FbFNO67Hi6ALSe48Wt38= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=DwQ9JxUX1HUhJuHURCPlCtAz+lBAO4chYLgGHtUiAemRgZLSHzwH2ATp/4agfpPMmx pqvds3Z7cri0SoGhMhkOmgh1gDVKSGopIehaBRiqJQVmU5qSl46R9kqRajG52xpy4pCZ 1V1KKjGZGVzVhnawbKuoiUxktp0eeozkrtPz4= Received: by 10.68.22.130 with SMTP id d2mr643243pbf.248.1307077502719; Thu, 02 Jun 2011 22:05:02 -0700 (PDT) Received: from localhost.localdomain ([202.115.1.35]) by mx.google.com with ESMTPS id k4sm1154697pbl.43.2011.06.02.22.04.58 (version=SSLv3 cipher=OTHER); Thu, 02 Jun 2011 22:05:01 -0700 (PDT) Sender: Eric Miao From: Eric Miao To: "linux-kernel" Cc: Eric Miao Subject: [PATCH] brd: make brd_make_request() return error code Date: Fri, 3 Jun 2011 13:02:47 +0800 Message-Id: <1307077367-6277-1-git-send-email-eric.miao@linaro.org> X-Mailer: git-send-email 1.7.4.1 brd_make_request() always returns 0, which doesn't make much sense. Signed-off-by: Eric Miao --- drivers/block/brd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/block/brd.c b/drivers/block/brd.c index dba1c32..a9587ee 100644 --- a/drivers/block/brd.c +++ b/drivers/block/brd.c @@ -360,7 +360,7 @@ static int brd_make_request(struct request_queue *q, struct bio *bio) out: bio_endio(bio, err); - return 0; + return err; } #ifdef CONFIG_BLK_DEV_XIP