summaryrefslogtreecommitdiffstats
path: root/ffs/src
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 16:59:35 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-12-15 16:59:35 +1100
commitc8c64252eb57241a73b1c9e4e332d82580220fde (patch)
tree5f45d14720433e864ea5cd3694d79841445b6981 /ffs/src
parent67c96c6d2e76a8cce19988839f2ebcc1793445e2 (diff)
downloadffs-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/src')
-rw-r--r--ffs/src/libffs.c8
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);
OpenPOWER on IntegriCloud