From patchwork Thu Apr 28 21:47:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Gardiner X-Patchwork-Id: 93337 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id E62C5B6F80 for ; Fri, 29 Apr 2011 07:48:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A3756280A6; Thu, 28 Apr 2011 23:48:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0W7kKVd5ulrE; Thu, 28 Apr 2011 23:48:15 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 9EBEE280BE; Thu, 28 Apr 2011 23:48:11 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E26F62808A for ; Thu, 28 Apr 2011 23:48:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Knv0wZW-sC6g for ; Thu, 28 Apr 2011 23:48:03 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from na3sys009aog104.obsmtp.com (na3sys009aog104.obsmtp.com [74.125.149.73]) by theia.denx.de (Postfix) with ESMTPS id 1E1072808D for ; Thu, 28 Apr 2011 23:48:01 +0200 (CEST) Received: from mail-gw0-f48.google.com ([74.125.83.48]) (using TLSv1) by na3sys009aob104.postini.com ([74.125.148.12]) with SMTP ID DSNKTbngj7zwCkW9pWX/A2KbSTQN39KuRZqK@postini.com; Thu, 28 Apr 2011 14:48:03 PDT Received: by mail-gw0-f48.google.com with SMTP id 22so1522714gwj.7 for ; Thu, 28 Apr 2011 14:47:59 -0700 (PDT) Received: by 10.101.138.2 with SMTP id q2mr2617803ann.141.1304027279861; Thu, 28 Apr 2011 14:47:59 -0700 (PDT) Received: from localhost.localdomain ([206.191.47.130]) by mx.google.com with ESMTPS id s36sm2164907ano.1.2011.04.28.14.47.58 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 28 Apr 2011 14:47:59 -0700 (PDT) From: Ben Gardiner To: Scott Wood , u-boot@lists.denx.de Date: Thu, 28 Apr 2011 17:47:51 -0400 Message-Id: <959c3b06d030a26ec941382c1699ba8a60ac427a.1304026883.git.bengardiner@nanometrics.ca> X-Mailer: git-send-email 1.7.1 In-Reply-To: References: Cc: Artem Bityutskiy Subject: [U-Boot] [PATCH 1/5] nand_base: trivial: fix comment read/write comment X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Replace an incorrect 'read' with 'write' in a comment. Signed-off-by: Ben Gardiner --- drivers/mtd/nand/nand_base.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/nand/nand_base.c b/drivers/mtd/nand/nand_base.c index 52f8575..1a95a91 100644 --- a/drivers/mtd/nand/nand_base.c +++ b/drivers/mtd/nand/nand_base.c @@ -1950,7 +1950,7 @@ static int nand_write(struct mtd_info *mtd, loff_t to, size_t len, struct nand_chip *chip = mtd->priv; int ret; - /* Do not allow reads past end of device */ + /* Do not allow writes past end of device */ if ((to + len) > mtd->size) return -EINVAL; if (!len)