[PATCH] staging: unisys: add comment to spinlock in struct charqueue

Benjamin Romer benjamin.romer at unisys.com
Mon Nov 10 15:19:14 UTC 2014


Add a comment to the charqueue's spinlock to explain that it is a lock for the
structure. Now with spaces! :)

Signed-off-by: Benjamin Romer <benjamin.romer at unisys.com>
---
 drivers/staging/unisys/visorutil/charqueue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/unisys/visorutil/charqueue.c b/drivers/staging/unisys/visorutil/charqueue.c
index 1ce7003..ac7acb7 100644
--- a/drivers/staging/unisys/visorutil/charqueue.c
+++ b/drivers/staging/unisys/visorutil/charqueue.c
@@ -28,7 +28,7 @@
 struct charqueue {
 	int alloc_size;
 	int nslots;
-	spinlock_t lock;
+	spinlock_t lock; /* read/write lock for this structure */
 	int head, tail;
 	unsigned char buf[0];
 };
-- 
2.1.0



More information about the devel mailing list