Re: [PATCH 031/206] Staging: hv: storvsc: Get rid of some unnecessary DPRINTS

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

 



On Tue, May 10, 2011 at 07:54:17AM -0700, K. Y. Srinivasan wrote:
> The subject line says it all.
> 
> Signed-off-by: K. Y. Srinivasan <kys@xxxxxxxxxxxxx>
> Signed-off-by: Haiyang Zhang <haiyangz@xxxxxxxxxxxxx>
> Signed-off-by: Abhishek Kane <v-abkane@xxxxxxxxxxxxx>
> Signed-off-by: Hank Janssen <hjanssen@xxxxxxxxxxxxx>
> ---
>  drivers/staging/hv/storvsc.c |  116 ++++++------------------------------------
>  1 files changed, 16 insertions(+), 100 deletions(-)
> 
> diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c
> index 5d5aec3..41361f5 100644
> --- a/drivers/staging/hv/storvsc.c
> +++ b/drivers/staging/hv/storvsc.c
> @@ -113,11 +113,8 @@ static int storvsc_channel_init(struct hv_device *device)
>  	int ret, t;
>  
>  	stor_device = get_stor_device(device);
> -	if (!stor_device) {
> -		DPRINT_ERR(STORVSC, "unable to get stor device..."
> -			   "device being destroyed?");
> +	if (!stor_device)
>  		return -1;

Just a note for future things to clean up.  Never return -1, please use
proper -ERR* values instead.

thanks,

greg k-h
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/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