lkml.org 
[lkml]   [2022]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v1 1/2] ALSA: hda: cs35l41: Call put_device() in the scope of get_device()
On Mon, 05 Sep 2022 18:58:25 +0200,
Andy Shevchenko wrote:
>
> When put_device() is called in another function it's hard to realize
> that and easy to "fix" the code in a wrong way. Instead, move
> put_device() to be in the same scope as get_device(), so we prevent
> appearance of any attempts to "fix" the code.
>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

Applied both patches now. Thanks.


Takashi

\
 
 \ /
  Last update: 2022-09-06 14:01    [W:0.036 / U:5.328 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site