iio: humidity: hts221: Drop unneeded casting when print error code
Explicit casting in printf() usually shows that something is not okay. Here, we really don't need it by providing correct specifier. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
92c3e93b7d
commit
144eb562be
@ -32,8 +32,8 @@ static int hts221_i2c_probe(struct i2c_client *client,
|
||||
|
||||
regmap = devm_regmap_init_i2c(client, &hts221_i2c_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);
|
||||
}
|
||||
|
||||
|
@ -31,8 +31,8 @@ static int hts221_spi_probe(struct spi_device *spi)
|
||||
|
||||
regmap = devm_regmap_init_spi(spi, &hts221_spi_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