diff options
author | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-15 16:59:35 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2015-12-15 16:59:35 +1100 |
commit | c8c64252eb57241a73b1c9e4e332d82580220fde (patch) | |
tree | 5f45d14720433e864ea5cd3694d79841445b6981 /ffs | |
parent | 67c96c6d2e76a8cce19988839f2ebcc1793445e2 (diff) | |
download | ffs-c8c64252eb57241a73b1c9e4e332d82580220fde.tar.gz ffs-c8c64252eb57241a73b1c9e4e332d82580220fde.zip |
remove likely/unlikely: nothing is *that* perf critical
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'ffs')
-rw-r--r-- | ffs/src/libffs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ffs/src/libffs.c b/ffs/src/libffs.c index e8f1933..03359d8 100644 --- a/ffs/src/libffs.c +++ b/ffs/src/libffs.c @@ -268,7 +268,7 @@ static int __entries_read(ffs_hdr_t * hdr, FILE * file, off_t offset) #if 0 static void __entries_write(ffs_hdr_t * hdr, FILE * file, off_t offset) { - if (unlikely(hdr == NULL)) + if (hdr == NULL) ffs_throw(UNEX, 10400, "NULL hdr pointer"); if (hdr->magic != FFS_MAGIC) ffs_throw(UNEX, 10401, "magic number mismatch '%x' != " @@ -740,7 +740,7 @@ int __ffs_fclose(ffs_t * self) int __ffs_close(ffs_t * self) { - if (unlikely(self == NULL)) + if (self == NULL) return 0; if (self->dirty == true) @@ -1325,7 +1325,7 @@ ssize_t __ffs_entry_copy(ffs_t *self, ffs_t *in, const char *path) assert(in != NULL); assert(path != NULL); - if (unlikely(*path == '\0')) + if (*path == '\0') return 0; ffs_entry_t *src = __find_entry(in->hdr, path); @@ -1405,7 +1405,7 @@ ssize_t __ffs_entry_compare(ffs_t * self, ffs_t * in, const char *path) assert(in != NULL); assert(path != NULL); - if (unlikely(*path == '\0')) + if (*path == '\0') return 0; ffs_entry_t *src = __find_entry(in->hdr, path); |