staging: vchiq_core: remove superfluous static_assert statement
authorGaston Gonzalez <gascoar@gmail.com>
Mon, 22 Nov 2021 13:09:26 +0000 (10:09 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 16:43:22 +0000 (17:43 +0100)
After removing the BITSET_T typedef in commit d8a364820e01 ("staging:
vchiq_core: get rid of typedef") the static_assert statement becomes superfluous
as now we are checking if the size of the u32 type is 4 bytes. Hence, just
remove the static_assert statement.

Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Gaston Gonzalez <gascoar@gmail.com>
Link: https://lore.kernel.org/r/20211122130926.342128-1-gascoar@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h

index 53a98949b29460648156954b7e92d738791b5287..55abaf02a196615db54776ffdfdd5eb91b831de9 100644 (file)
@@ -74,8 +74,6 @@
        ((fourcc) >>  8) & 0xff, \
        (fourcc) & 0xff
 
-static_assert((sizeof(u32) * 8) == 32);
-
 #define BITSET_SIZE(b)        ((b + 31) >> 5)
 #define BITSET_WORD(b)        (b >> 5)
 #define BITSET_BIT(b)         (1 << (b & 31))