Skip to contentSkip to conversation

Cleanup of most_video_dev structure

PATCH New Ravi Kumar kairi 1 participant 3 messages Feb 19, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
#1 lore raw

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
index 2b3cdb1ce1..bd51125698 100644
@@ -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
#2 lore raw

PATCH 1/1 staging: most: Remove unused spinlock from most_video_dev

In reply to Ravi Kumar kairi

From: 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
index bd51125698..83b46476ca 100644
@@ -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