summaryrefslogtreecommitdiff
path: root/include/media
diff options
context:
space:
mode:
authorJason Kim <sukbeom.kim@gmail.com>2023-03-28 12:14:59 +0900
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2023-04-11 18:54:01 +0200
commita7687fec197596f23954225c99e183e90208bcbb (patch)
tree06c8675cf9eb568c381dd5d9708d04d453ea4944 /include/media
parent2649c1a20e8e399ee955d0e22192f9992662c3d2 (diff)
media: mc-device: remove unnecessary __must_check
In the file mc-device.c, the function media_device_register_entity_notify() does not need to have the __must_check attribute since it returns only a value of 0. Therefore, we can remove this attribute and change the function's return type. Signed-off-by: Jason Kim <sukbeom.kim@gmail.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'include/media')
-rw-r--r--include/media/media-device.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/media/media-device.h b/include/media/media-device.h
index 86716ee7cc6c..2c146d0b2b1c 100644
--- a/include/media/media-device.h
+++ b/include/media/media-device.h
@@ -364,7 +364,7 @@ void media_device_unregister_entity(struct media_entity *entity);
* media_entity_notify callbacks are invoked.
*/
-int __must_check media_device_register_entity_notify(struct media_device *mdev,
+void media_device_register_entity_notify(struct media_device *mdev,
struct media_entity_notify *nptr);
/**
@@ -444,11 +444,10 @@ static inline int media_device_register_entity(struct media_device *mdev,
static inline void media_device_unregister_entity(struct media_entity *entity)
{
}
-static inline int media_device_register_entity_notify(
+static inline void media_device_register_entity_notify(
struct media_device *mdev,
struct media_entity_notify *nptr)
{
- return 0;
}
static inline void media_device_unregister_entity_notify(
struct media_device *mdev,