X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=blobdiff_plain;f=yaffs_getblockinfo.h;h=09b5a166fc9be9b31c76ccbfd345f33b4bc93cb8;hp=5f6e063692aa0b6ada418487ef91f87874bb0dbc;hb=b4d5215f18486403d16f2e776000e43eba052f40;hpb=f421449422a9107e857d90d306907084dad236fb diff --git a/yaffs_getblockinfo.h b/yaffs_getblockinfo.h index 5f6e063..09b5a16 100644 --- a/yaffs_getblockinfo.h +++ b/yaffs_getblockinfo.h @@ -1,7 +1,7 @@ /* * YAFFS: Yet another Flash File System . A NAND-flash specific file system. * - * Copyright (C) 2002-2010 Aleph One Ltd. + * Copyright (C) 2002-2011 Aleph One Ltd. * for Toby Churchill Ltd and Brightstar Engineering * * Created by Charles Manning @@ -23,7 +23,8 @@ static inline struct yaffs_block_info *yaffs_get_block_info(struct yaffs_dev *dev, int blk) { - if (blk < dev->internal_start_block || blk > dev->internal_end_block) { + if (blk < (int)dev->internal_start_block || + blk > (int)dev->internal_end_block) { yaffs_trace(YAFFS_TRACE_ERROR, "**>> yaffs: get_block_info block %d is not valid", blk);