Re: Re: [PATCH] ASoC: wm8350: Handle error for wm8350_register_irq

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

 



On Thu, Mar 03, 2022 at 09:38:34PM +0800, Charles Keepax wrote:
>>  	if (ret != 0)
>> -		return ret;
>> +		goto err;
> 
> I would probably just leave this as a return, nothing is gained
> changing it to a goto.
> 
>>  
>> +	ret = wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_JCK_DET_R,
>>  			    wm8350_hpr_jack_handler, 0, "Right jack detect",
>>  			    priv);
>> -	wm8350_register_irq(wm8350, WM8350_IRQ_CODEC_MICSCD,
>> +	if (ret != 0)
>> +		goto free_JCK_DET_L;
> 
> Probably better to use non-caps here, having caps in a label is a
> little unusual.

Thansk, I have submitted v2 to solve the problems.

Jiang




[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux