i2c: mux: Simplify boolean assignment in i2c_mux_alloc
authorI Viswanath <viswanathiyyappan@gmail.com>
Mon, 25 Aug 2025 03:14:30 +0000 (08:44 +0530)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 25 Sep 2025 21:49:08 +0000 (23:49 +0200)
commit59ccb8176bd7e826d47962e891b460284f6978f0
treeea165a90c29efeb0e1d28c57ec1884d3ebd1c052
parent2b7a2003ba01cde9a4958a50c55207f820766816
i2c: mux: Simplify boolean assignment in i2c_mux_alloc

Refactor boolean field assignments of the form `if (a) b = true` to
`b = !!(a)` in i2c_mux_alloc.

Signed-off-by: I Viswanath <viswanathiyyappan@gmail.com>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
drivers/i2c/i2c-mux.c