From b70ea39d4f2547564197afa8866b388301765583 Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Mon, 10 Jan 2011 11:58:11 +1300 Subject: yaffs: Sort out issues raised by Coverity Coverity checks raised some issues, particularly with NULL checks. Fix them. Signed-off-by: Charles Manning --- yaffs_tagscompat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yaffs_tagscompat.c') diff --git a/yaffs_tagscompat.c b/yaffs_tagscompat.c index 7578075..818f72b 100644 --- a/yaffs_tagscompat.c +++ b/yaffs_tagscompat.c @@ -151,7 +151,7 @@ static int yaffs_rd_chunk_nand(struct yaffs_dev *dev, int ret_val; struct yaffs_spare local_spare; - if (!spare && data) { + if (!spare) { /* If we don't have a real spare, then we use a local one. */ /* Need this for the calculation of the ecc */ spare = &local_spare; @@ -290,7 +290,7 @@ int yaffs_tags_compat_wr(struct yaffs_dev *dev, struct yaffs_tags tags; yaffs_spare_init(&spare); - + if (ext_tags->is_deleted) spare.page_status = 0; else { -- cgit v1.2.3