From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from dell-paw-3.cambridge.redhat.com ([195.224.55.237] helo=passion.cambridge.redhat.com) by pentafluge.infradead.org with esmtp (Exim 3.22 #1 (Red Hat Linux)) id 15U3hZ-0007Km-00 for ; Tue, 07 Aug 2001 11:03:05 +0100 From: David Woodhouse In-Reply-To: <20010802205155.1538.qmail@nwcst337.netaddress.usa.net> References: <20010802205155.1538.qmail@nwcst337.netaddress.usa.net> To: Eric Cc: linux-mtd@lists.infradead.org Subject: Re: [PATCH] duplicate assignment in map_ram.c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 07 Aug 2001 11:08:48 +0100 Message-ID: <4224.997178928@redhat.com> Sender: linux-mtd-admin@lists.infradead.org Errors-To: linux-mtd-admin@lists.infradead.org List-Help: List-Post: List-Subscribe: , List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: ebrower@usa.net said: > There's a duplicate assignment to mtd->erasesize in /drivers/mtd/ > chips/map_ram.c which is removed with the following patch. Applied, along with the following: mtd->erasesize = PAGE_SIZE; + while(mtd->size & (mtd->erasesize - 1)) + mtd->erasesize >>= 1; Thanks. -- dwmw2