Skip to content

Commit 0c4b027

Browse files
committedApr 26, 2021
reset: uniphier: enclose UNIPHIER_RESET_ID_END value in parentheses
Fixes a checkpatch error: ERROR: Macros with complex values should be enclosed in parentheses #23: FILE: drivers/reset/reset-uniphier.c:23: +#define UNIPHIER_RESET_ID_END (unsigned int)(-1) Signed-off-by: Philipp Zabel <[email protected]>
1 parent cbce6d7 commit 0c4b027

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎drivers/reset/reset-uniphier.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct uniphier_reset_data {
2020
#define UNIPHIER_RESET_ACTIVE_LOW BIT(0)
2121
};
2222

23-
#define UNIPHIER_RESET_ID_END (unsigned int)(-1)
23+
#define UNIPHIER_RESET_ID_END ((unsigned int)(-1))
2424

2525
#define UNIPHIER_RESET_END \
2626
{ .id = UNIPHIER_RESET_ID_END }

0 commit comments

Comments
 (0)
Please sign in to comment.