summaryrefslogtreecommitdiff
path: root/yaffs_mtdif.c
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2011-02-01 10:57:18 +1300
committerCharles Manning <cdhmanning@gmail.com>2011-02-01 10:57:18 +1300
commit6500cebaa2c93512d544719956af259ca13f83b7 (patch)
treeaab99283b974185ddf521defbad25b81779b684c /yaffs_mtdif.c
parent6120ba5a0a029e945f4a2e7e5955896f112d4adc (diff)
yaffs: Clean up as per Ryan's comments
Clean up a whole lot of code issues raised by Ryan. Some further reformatting etc to be mor kernel friendly. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_mtdif.c')
-rw-r--r--yaffs_mtdif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/yaffs_mtdif.c b/yaffs_mtdif.c
index b36a8be..b5fccec 100644
--- a/yaffs_mtdif.c
+++ b/yaffs_mtdif.c
@@ -26,8 +26,8 @@ int nandmtd_erase_block(struct yaffs_dev *dev, int block_no)
{
struct mtd_info *mtd = yaffs_dev_to_mtd(dev);
u32 addr =
- ((loff_t) block_no) * dev->param.total_bytes_per_chunk
- * dev->param.chunks_per_block;
+ ((loff_t) block_no) * dev->param.total_bytes_per_chunk *
+ dev->param.chunks_per_block;
struct erase_info ei;
int retval = 0;
@@ -43,8 +43,8 @@ int nandmtd_erase_block(struct yaffs_dev *dev, int block_no)
if (retval == 0)
return YAFFS_OK;
- else
- return YAFFS_FAIL;
+
+ return YAFFS_FAIL;
}
int nandmtd_initialise(struct yaffs_dev *dev)