Cleanup of most_video_dev structure
Subsystems (2)
PATCH 1/1 Cleanup of most_video_dev structure
From: Ravi Kumar Kairi <[email protected]>
This patch series removes unused synchronization primitives from struct most_video_dev to improve maintainability.
Patch 1 removes an unused mutex, and Patch 2 removes an unused spinlock.
Ravi Kumar Kairi (2):
staging: most: Remove unused mutex from most_video_dev
staging: most: Remove unused spinlock from most_video_dev
drivers/staging/most/video/video.c | 3 --- 1 file changed, 3 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/1 staging: most: Remove unused mutex from most_video_dev
From: Ravi Kumar Kairi <[email protected]>
The lock field in struct most_video_dev is never used anywhere in the codebase. Since it serves no purpose, remove it to clean up the structure.
--- drivers/staging/most/video/video.c | 2 -- 1 file changed, 2 deletions(-)
drivers/staging/most/video/video.c +0 -2
@@ -40,8 +40,6 @@ struct most_video_dev {struct video_device *vdev;unsigned int ctrl_input; -struct mutex lock; -wait_queue_head_t wait_data; };
Signature · 1 line
2.48.1
PATCH 1/1 staging: most: Remove unused spinlock from most_video_dev
In reply to Ravi Kumar kairiFrom: Ravi Kumar Kairi <[email protected]>
The list_lock spinlock in struct most_video_dev is never used anywhere in the codebase. Since it serves no purpose, remove it to clean up the structure.
--- drivers/staging/most/video/video.c | 1 - 1 file changed, 1 deletion(-)
drivers/staging/most/video/video.c +0 -1
@@ -33,7 +33,6 @@ struct most_video_dev {bool mute;struct list_head pending_mbos; -spinlock_t list_lock;struct v4l2_device v4l2_dev;atomic_t access_ref;
Signature · 1 line
2.48.1