Skip to content

Commit 66adfe7

Browse files
lategoodbyegregkh
authored andcommitted
staging: vchiq_core: Drop non-functional struct members
There are some struct members, which don't have a real function. So it's safe to drop them. Signed-off-by: Stefan Wahren <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ee3d368 commit 66adfe7

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,14 +2163,12 @@ vchiq_init_state(struct vchiq_state *state, struct vchiq_slot_zero *slot_zero, s
21632163
mutex_init(&state->slot_mutex);
21642164
mutex_init(&state->recycle_mutex);
21652165
mutex_init(&state->sync_mutex);
2166-
mutex_init(&state->bulk_transfer_mutex);
21672166

21682167
spin_lock_init(&state->msg_queue_spinlock);
21692168
spin_lock_init(&state->bulk_waiter_spinlock);
21702169
spin_lock_init(&state->quota_spinlock);
21712170

21722171
init_completion(&state->slot_available_event);
2173-
init_completion(&state->slot_remove_event);
21742172
init_completion(&state->data_quota_event);
21752173

21762174
state->slot_queue_available = 0;

drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,6 @@ struct vchiq_state {
347347

348348
struct mutex sync_mutex;
349349

350-
struct mutex bulk_transfer_mutex;
351-
352350
spinlock_t msg_queue_spinlock;
353351

354352
spinlock_t bulk_waiter_spinlock;
@@ -393,8 +391,6 @@ struct vchiq_state {
393391
/* Signalled when a free slot becomes available. */
394392
struct completion slot_available_event;
395393

396-
struct completion slot_remove_event;
397-
398394
/* Signalled when a free data slot becomes available. */
399395
struct completion data_quota_event;
400396

0 commit comments

Comments
 (0)