Skip to content

Commit 20aa495

Browse files
intel-lab-lkppalmer-dabbelt
authored andcommitted
riscv: fix boolconv.cocci warnings
arch/riscv/mm/init.c:48:11-16: WARNING: conversion to bool not needed here Remove unneeded conversion to bool Semantic patch information: Relational and logical operators evaluate to bool, explicit conversion is overly verbose and unneeded. Generated by: scripts/coccinelle/misc/boolconv.cocci Reported-by: kernel test robot <[email protected]> Signed-off-by: kernel test robot <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 0c34e79 commit 20aa495

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/riscv/mm/init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ u64 satp_mode = SATP_MODE_32;
4444
#endif
4545
EXPORT_SYMBOL(satp_mode);
4646

47-
bool pgtable_l4_enabled = IS_ENABLED(CONFIG_64BIT) && !IS_ENABLED(CONFIG_XIP_KERNEL) ?
48-
true : false;
47+
bool pgtable_l4_enabled = IS_ENABLED(CONFIG_64BIT) && !IS_ENABLED(CONFIG_XIP_KERNEL);
4948
EXPORT_SYMBOL(pgtable_l4_enabled);
5049

5150
phys_addr_t phys_ram_base __ro_after_init;

0 commit comments

Comments
 (0)