Skip to content

Commit d3e8001

Browse files
Andi ShytiAndi Shyti
authored andcommitted
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>
1 parent d6263c4 commit d3e8001

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/i2c/busses/i2c-bcm-iproc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1039,9 +1039,9 @@ static int bcm_iproc_i2c_cfg_speed(struct bcm_iproc_i2c_dev *iproc_i2c)
10391039

10401040
static int bcm_iproc_i2c_probe(struct platform_device *pdev)
10411041
{
1042-
int irq, ret = 0;
10431042
struct bcm_iproc_i2c_dev *iproc_i2c;
10441043
struct i2c_adapter *adap;
1044+
int irq, ret;
10451045

10461046
iproc_i2c = devm_kzalloc(&pdev->dev, sizeof(*iproc_i2c),
10471047
GFP_KERNEL);

0 commit comments

Comments
 (0)