mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
media: ipu-bridge: Use %pe format specifier
The %pe format specifier is designed to print error pointers. It prints a symbolic error name (eg. -EINVAL) and it makes the code simpler by omitting PTR_ERR(). This patch fixes this cocci report: ./pci/intel/ipu-bridge.c:567:3-10: WARNING: Consider using %pe to print PTR_ERR() Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
committed by
Hans Verkuil
parent
8bcc9138a7
commit
5e82eb357a
@@ -563,8 +563,8 @@ static void ipu_bridge_instantiate_vcm_work(struct work_struct *work)
|
||||
vcm_client = i2c_acpi_new_device_by_fwnode(acpi_fwnode_handle(adev),
|
||||
1, &data->board_info);
|
||||
if (IS_ERR(vcm_client)) {
|
||||
dev_err(data->sensor, "Error instantiating VCM client: %ld\n",
|
||||
PTR_ERR(vcm_client));
|
||||
dev_err(data->sensor, "Error instantiating VCM client: %pe\n",
|
||||
vcm_client);
|
||||
goto out_pm_put;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user