mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 00:53:34 +02:00
i2c: mux: ltc4306: Remove an unnecessary ternary operator
The true or false judgement of the ternary operator is unnecessary in C language semantics. So remove it to clean Code. Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Acked-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20230801025328.3380963-1-ruanjinjie@huawei.com Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
This commit is contained in:
parent
5140b46caf
commit
0c89b3257b
|
|
@ -62,7 +62,7 @@ static const struct chip_desc chips[] = {
|
|||
|
||||
static bool ltc4306_is_volatile_reg(struct device *dev, unsigned int reg)
|
||||
{
|
||||
return (reg == LTC_REG_CONFIG) ? true : false;
|
||||
return reg == LTC_REG_CONFIG;
|
||||
}
|
||||
|
||||
static const struct regmap_config ltc4306_regmap_config = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user