forked from Minki/linux
iio: chemical: bmp680: Drop unneeded explicit castings
In few places the unnecessary explicit castings are being used. Drop them for good. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210312134349.3472-1-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
7792225b7b
commit
d612eb13ba
@ -26,8 +26,7 @@ static int bme680_i2c_probe(struct i2c_client *client,
|
||||
|
||||
regmap = devm_regmap_init_i2c(client, &bme680_regmap_config);
|
||||
if (IS_ERR(regmap)) {
|
||||
dev_err(&client->dev, "Failed to register i2c regmap %d\n",
|
||||
(int)PTR_ERR(regmap));
|
||||
dev_err(&client->dev, "Failed to register i2c regmap %ld\n", PTR_ERR(regmap));
|
||||
return PTR_ERR(regmap);
|
||||
}
|
||||
|
||||
|
@ -132,8 +132,7 @@ static int bme680_spi_probe(struct spi_device *spi)
|
||||
regmap = devm_regmap_init(&spi->dev, &bme680_regmap_bus,
|
||||
bus_context, &bme680_regmap_config);
|
||||
if (IS_ERR(regmap)) {
|
||||
dev_err(&spi->dev, "Failed to register spi regmap %d\n",
|
||||
(int)PTR_ERR(regmap));
|
||||
dev_err(&spi->dev, "Failed to register spi regmap %ld\n", PTR_ERR(regmap));
|
||||
return PTR_ERR(regmap);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user