diff options
author | Charles Manning <cdhmanning@gmail.com> | 2011-01-10 11:58:11 +1300 |
---|---|---|
committer | Charles Manning <cdhmanning@gmail.com> | 2011-01-10 11:58:11 +1300 |
commit | b70ea39d4f2547564197afa8866b388301765583 (patch) | |
tree | 62a492ec65627c05a11c71f869bb8693fed8ca76 /yaffs_tagscompat.c | |
parent | a8e8fa708152c823e534b7b004bfbd121dd1670e (diff) |
yaffs: Sort out issues raised by Coverity
Coverity checks raised some issues, particularly with NULL checks.
Fix them.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'yaffs_tagscompat.c')
-rw-r--r-- | yaffs_tagscompat.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |