[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH v5 06/15] include/uk: bitmap, bitops - fix return is not a function



From: Costin Lupu <costin.lupu@xxxxxxxxx>

This fixes "return is not a function" checkpatch error.

Signed-off-by: Costin Lupu <costin.lupu@xxxxxxxxx>
Reviewed-by: Yuri Volchkov <yuri.volchkov@xxxxxxxxx>
---
 include/uk/bitmap.h | 4 ++--
 include/uk/bitops.h | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/uk/bitmap.h b/include/uk/bitmap.h
index 5f3bd82..60bd19b 100644
--- a/include/uk/bitmap.h
+++ b/include/uk/bitmap.h
@@ -183,7 +183,7 @@ bitmap_find_free_region(unsigned long *bitmap, int bits, 
int order)
                if (!linux_reg_op(bitmap, pos, order, REG_OP_ISFREE))
                        continue;
                linux_reg_op(bitmap, pos, order, REG_OP_ALLOC);
-               return (pos);
+               return pos;
        }
        return (-ENOMEM);
 }
@@ -194,7 +194,7 @@ bitmap_allocate_region(unsigned long *bitmap, int pos, int 
order)
        if (!linux_reg_op(bitmap, pos, order, REG_OP_ISFREE))
                return (-EBUSY);
        linux_reg_op(bitmap, pos, order, REG_OP_ALLOC);
-       return (0);
+       return 0;
 }
 
 static inline void
diff --git a/include/uk/bitops.h b/include/uk/bitops.h
index 01c069f..cfe7f6a 100644
--- a/include/uk/bitops.h
+++ b/include/uk/bitops.h
@@ -91,7 +91,7 @@ __flsl(long mask)
 static inline int
 fls64(uint64_t mask)
 {
-       return (flsll(mask));
+       return flsll(mask);
 }
 
 static inline uint32_t
-- 
2.18.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.