Re: [PATCH 2/4] staging: dgnc: audit goto's in dgnc_mgmt

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

 



On Tue, Mar 07, 2017 at 05:33:07PM +1100, Tobin C. Harding wrote:
> +	/* Only allow 1 open at a time on mgmt device */
> +	if (dgnc_mgmt_in_use[minor]) {
> +		rc = -EBUSY;
> +		goto out;
> +	}
> +	dgnc_mgmt_in_use[minor]++;
>  
> +out:

Better to use "unlock" instead of "out".  "out" is very ambigous.

regards,
dan carpenter

_______________________________________________
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