diff options
| author | Ricardo Ribalda <ribalda@chromium.org> | 2025-10-13 14:15:00 +0000 |
|---|---|---|
| committer | Hans Verkuil <hverkuil+cisco@kernel.org> | 2025-10-17 11:31:15 +0200 |
| commit | 8bcc9138a780194496ccfe2f22aaaeadce686211 (patch) | |
| tree | fd7c630868b29486b89bc1135988c7572628296a /include/linux/i2c/git@git.tavy.me:linux.git | |
| parent | 7f457b281cc363320fb954498b15156f9dbfc6e5 (diff) | |
media: i2c: st-mipid02: 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:
./i2c/st-mipid02.c:751: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>
Diffstat (limited to 'include/linux/i2c/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
