staging: rtl8723bs: remove redundant semicolon in basic_types.h
PATCH v2 1/1 staging: rtl8723bs: remove redundant semicolon in basic_types.h
The macro SET_BITS_TO_LE_2BYTE ends with a semicolon inside its definition, which can lead to an extra semicolon when used, resulting in inconsistent formatting or potential warnings.
This patch removes the redundant semicolon to comply with kernel macro style guidelines and improve readability.
Detected using checkpatch.pl.
Signed-off-by Ali Nasrolahi <[email protected]>
---
Changes in v2:
- Rewrapped commit message to follow 72-character limit
- Added explanation for removing semicolon
- Thanks for the review and feedback!
drivers/staging/rtl8723bs/include/basic_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/include/basic_types.h +1 -1
@@ -162,7 +162,7 @@ ( \LE_BITS_CLEARED_TO_2BYTE (__pstart, __bitoffset, __bitlen) | \ ((((u16 )__val) &BIT_LEN_MASK_16 (__bitlen)) << (__bitoffset)) \ - ); + )#define SET_BITS_TO_LE_1BYTE (__pstart, __bitoffset, __bitlen, __val) \ *((u8 *)(__pstart)) = EF1BYTE \
Signature · 1 line
2.50.1