From patchwork Mon Feb 15 21:57:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: roel kluin X-Patchwork-Id: 45439 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 82CDFB7C09 for ; Tue, 16 Feb 2010 08:52:09 +1100 (EST) Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Nh8ph-0001jM-ID; Mon, 15 Feb 2010 21:50:21 +0000 Received: from mail-ew0-f223.google.com ([209.85.219.223]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1Nh8pZ-0001SE-Dj for linux-mtd@lists.infradead.org; Mon, 15 Feb 2010 21:50:18 +0000 Received: by ewy23 with SMTP id 23so429686ewy.4 for ; Mon, 15 Feb 2010 13:50:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=QaYLWZRUGZgWEv2NMn0mHUYTvXrFmW7dyG8Lnn7rOC0=; b=QYV5w62pyUe/K1VA2hf6BcSZxZUB6IKbwKzWjcX+6NaVddX/OqT8qOScDNrTKvOXhV Sv/yUxonHz+LmrutTlKkagHNVjhwgmh0f4v0h3+b/JuMHQuR60x7SWdom0UnnBRQlgT1 U+l5AoZqTeOJwzUQp2Y9tY6uW1Qg1+b/qTqMY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=gxwyQIMMMhvs6uOYqWrQNPqs7qRNjte3ZoVPBqgfXbu16yRJtoWOYHWG+XAuGnlD1p qlILO5lu3ZQQEySL2NEf5ZrEEQF/jKMAT/EKX0vIbLTW/ge5YUmDzJ+3eO+TxXZ0DzSv XNbxCTdzjzqGLq4/Ef8YncEHoyviV3jOZ/azo= Received: by 10.213.24.27 with SMTP id t27mr767239ebb.64.1266270601081; Mon, 15 Feb 2010 13:50:01 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id 7sm9860695eyb.18.2010.02.15.13.49.59 (version=SSLv3 cipher=RC4-MD5); Mon, 15 Feb 2010 13:50:00 -0800 (PST) Message-ID: <4B79C344.60908@gmail.com> Date: Mon, 15 Feb 2010 22:57:24 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1 MIME-Version: 1.0 To: David Woodhouse , linux-mtd@lists.infradead.org, Andrew Morton , LKML Subject: [PATCH] mtd: misplaced parenthesis in find_boot_record() X-CRM114-Version: 20090807-BlameThorstenAndJenny ( TRE 0.7.6 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20100215_165013_580724_E6936CEB X-CRM114-Status: GOOD ( 12.87 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.2.5 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- _SUMMARY_ X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The parenthesis was misplaced, upon error a one was shown. Signed-off-by: Roel Kluin diff --git a/drivers/mtd/inftlmount.c b/drivers/mtd/inftlmount.c index 32e82ae..a269c62 100644 --- a/drivers/mtd/inftlmount.c +++ b/drivers/mtd/inftlmount.c @@ -102,7 +102,7 @@ static int find_boot_record(struct INFTLrecord *inftl) /* To be safer with BIOS, also use erase mark as discriminant */ if ((ret = inftl_read_oob(mtd, block * inftl->EraseSize + SECTORSIZE + 8, 8, &retlen, - (char *)&h1) < 0)) { + (char *)&h1)) < 0) { printk(KERN_WARNING "INFTL: ANAND header found at " "0x%x in mtd%d, but OOB data read failed " "(err %d)\n", block * inftl->EraseSize,