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:
Ruan Jinjie 2023-08-01 10:53:28 +08:00 committed by Andi Shyti
parent 5140b46caf
commit 0c89b3257b

View File

@ -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 = {