From: Joern Engel Date: Tue, 20 Feb 2007 19:20:58 +0000 (+0100) Subject: [PATCH] [MTD] block2mtd: remove casts X-Git-Tag: v2.6.22-rc1~1116^2~42^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0ffb74ccc06a112042adfaf8229684b78202bcae;p=linux-2.6-omap-h63xx.git [PATCH] [MTD] block2mtd: remove casts Remove two casts - they were not only pointless, but outright harmful. Spotted by Felix Fietkau Signed-off-by: Jörn Engel --- diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c index f9f2ce7806b..6a9fb80339f 100644 --- a/drivers/mtd/devices/block2mtd.c +++ b/drivers/mtd/devices/block2mtd.c @@ -111,8 +111,8 @@ static int _block2mtd_erase(struct block2mtd_dev *dev, loff_t to, size_t len) if (IS_ERR(page)) return PTR_ERR(page); - max = (u_long*)page_address(page) + PAGE_SIZE; - for (p=(u_long*)page_address(page); p