Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: accel: bma400: Simplify an error message

dev_err_probe() already display the error code. There is no need to
duplicate it explicitly in the error message.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/9373d41b0a1f3dc3fc0d31c1daaa19d9a7ec4dcd.1681575924.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Christophe JAILLET and committed by
Jonathan Cameron
b4d32eb3 773aa06d

+1 -2
+1 -2
drivers/iio/accel/bma400_core.c
··· 868 868 ARRAY_SIZE(regulator_names), 869 869 regulator_names); 870 870 if (ret) 871 - return dev_err_probe(data->dev, ret, "Failed to get regulators: %d\n", 872 - ret); 871 + return dev_err_probe(data->dev, ret, "Failed to get regulators\n"); 873 872 874 873 /* Try to read chip_id register. It must return 0x90. */ 875 874 ret = regmap_read(data->regmap, BMA400_CHIP_ID_REG, &val);