Re: [PATCH 04/15] staging: unisys: add comment to spinlock in struct charqueue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 04, 2014 at 11:25:14AM -0500, Benjamin Romer wrote:
> Add a comment to the charqueue's spinlock to explain that it is a lock for the
> structure.
> 
> Signed-off-by: Benjamin Romer <benjamin.romer@xxxxxxxxxx>
> ---
>  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..46582f1 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*/

What's the adversion to using ' ' in a comment block? :)
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux