mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 02:24:24 +02:00
media: ti: cal 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: ./platform/ti/cal/cal.c:1111: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:
parent
2639358ef8
commit
efb83db2b9
|
|
@ -1107,8 +1107,7 @@ static int cal_init_camerarx_regmap(struct cal_dev *cal)
|
|||
return 0;
|
||||
}
|
||||
|
||||
dev_warn(cal->dev, "failed to get ti,camerrx-control: %ld\n",
|
||||
PTR_ERR(syscon));
|
||||
dev_warn(cal->dev, "failed to get ti,camerrx-control: %pe\n", syscon);
|
||||
|
||||
/*
|
||||
* Backward DTS compatibility. If syscon entry is not present then
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user