diff options
author | Andi Shyti <andi.shyti@kernel.org> | 2025-04-18 23:16:26 +0200 |
---|---|---|
committer | Andi Shyti <andi@smida.it> | 2025-05-19 22:23:56 +0200 |
commit | d3e80014e1413ec15503b65956f10f198540699e (patch) | |
tree | bc999649bbb82d081a243ce2ab30b44bdcb073a4 | |
parent | d6263c468a761cd4c89887073614394ac48441e1 (diff) |
i2c: iproc: Drop unnecessary initialisation of 'ret'
The 'ret' variable doesn't need to be initialised, as it is
always assigned before use.
While here, reorder the variable declarations in reverse
Christmas tree style, by line length.
Link: https://lore.kernel.org/r/20250418211635.2666234-2-andi.shyti@kernel.org
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
-rw-r--r-- | drivers/i2c/busses/i2c-bcm-iproc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-bcm-iproc.c b/drivers/i2c/busses/i2c-bcm-iproc.c index 332a0fcca28d..5d846ab91e6f 100644 --- a/drivers/i2c/busses/i2c-bcm-iproc.c +++ b/drivers/i2c/busses/i2c-bcm-iproc.c @@ -1039,9 +1039,9 @@ static int bcm_iproc_i2c_cfg_speed(struct bcm_iproc_i2c_dev *iproc_i2c) static int bcm_iproc_i2c_probe(struct platform_device *pdev) { - int irq, ret = 0; struct bcm_iproc_i2c_dev *iproc_i2c; struct i2c_adapter *adap; + int irq, ret; iproc_i2c = devm_kzalloc(&pdev->dev, sizeof(*iproc_i2c), GFP_KERNEL); |