Changeset e8abdfb in rtems


Ignore:
Timestamp:
Nov 20, 2014, 11:21:05 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
abf3892c
Parents:
8f73af85
git-author:
Joel Sherrill <joel.sherrill@…> (11/20/14 23:21:05)
git-committer:
Joel Sherrill <joel.sherrill@…> (11/21/14 19:13:21)
Message:

dosfs/fat_fat_operations.c: Explicitly ignore return (Coverity ID 26048)

Coverity spotted that the return code from fat_set_fat_cluster()
was ignored. But it should be because we want to return the status
that caused us to hit the cleanup path.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/dosfs/fat_fat_operations.c

    r8f73af85 re8abdfb  
    151151    /* cleanup activity */
    152152    fat_free_fat_clusters_chain(fs_info, (*chain));
    153     /* trying to save last allocated cluster for future use */
    154     fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_FREE);
     153
     154    /*
     155     * Trying to save last allocated cluster for future use
     156     *
     157     * NOTE: Deliberately ignoring return value.
     158     */
     159    (void) fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_FREE);
    155160    fat_buf_release(fs_info);
    156161    return rc;
Note: See TracChangeset for help on using the changeset viewer.