From: Otavio Salvador Date: Thu, 3 Oct 2013 08:04:38 -0300 Subject: [U-Boot] [PATCH v3 1/3] mtd: Fix function description in part_validate comment In-Reply-To: <1380798280-3449-1-git-send-email-otavio@ossystems.com.br> References: <1380798280-3449-1-git-send-email-otavio@ossystems.com.br> Message-ID: <1380798280-3449-2-git-send-email-otavio@ossystems.com.br> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The part_validate comment had a wrong description of the actions it does and referenced to non-existent functions while in fact it calls 'part_validate_eraseblock()'. Signed-off-by: Otavio Salvador --- Changes in v3: - Fix code comment (dropped 'either') Changes in v2: - rework commit log (Eric Benard) common/cmd_mtdparts.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c index 38a6e6d..f791372 100644 --- a/common/cmd_mtdparts.c +++ b/common/cmd_mtdparts.c @@ -381,10 +381,9 @@ static int part_validate_eraseblock(struct mtdids *id, struct part_info *part) /** - * Performs sanity check for supplied partition. Offset and size are verified - * to be within valid range. Partition type is checked and either - * parts_validate_nor() or parts_validate_nand() is called with the argument - * of part. + * Performs sanity check for supplied partition. Offset and size are + * verified to be within valid range. Partition type is checked and + * part_validate_eraseblock() is called with the argument of part. * * @param id of the parent device * @param part partition to validate -- 1.8.4.rc3