Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65ac716b authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron
Browse files

staging: iio: isl29028: remove unnecessary error logging in isl29028_chip_init_and_power_on()



If the call to isl29028_chip_init_and_power_on() in isl29028_probe()
fails, then isl29028_probe() will log an error message. All of the
error paths in that call path already have error logging in place. This
patch removes the unnecessary logging.

Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 578e02a7
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -528,10 +528,8 @@ static int isl29028_probe(struct i2c_client *client,
	}

	ret = isl29028_chip_init_and_power_on(chip);
	if (ret < 0) {
		dev_err(&client->dev, "chip initialization failed: %d\n", ret);
	if (ret < 0)
		return ret;
	}

	indio_dev->info = &isl29028_info;
	indio_dev->channels = isl29028_channels;