staging: lustre: fix comparisons should place the constant on the right side
authorAastha Gupta <aastha.gupta4104@gmail.com>
Wed, 18 Oct 2017 12:14:22 +0000 (17:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:34:46 +0000 (15:34 +0200)
This patch fixes checkpatch.pl warning:

WARNING: Comparisons should place the constant on the right side of the test

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/include/lu_object.h

index 4f213c4..a3c0481 100644 (file)
@@ -1130,7 +1130,7 @@ struct lu_context_key {
        {                                                        \
                type *value;                                  \
                                                                  \
-               BUILD_BUG_ON(PAGE_SIZE < sizeof(*value));        \
+               BUILD_BUG_ON(sizeof(*value) > PAGE_SIZE);        \
                                                                  \
                value = kzalloc(sizeof(*value), GFP_NOFS);      \
                if (!value)                             \