lkml.org 
[lkml]   [2024]   [Apr]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ASoC: soc-card: Fix a reversed if condition
On Mon, Apr 08, 2024 at 10:38:02AM +0300, Dan Carpenter wrote:

> ret = snd_soc_register_card(priv->card);
> - if (!ret)
> + if (ret)
> return ret;
>
> return 0;

Clearly a better fix here would just be to remove the conditional
entirely.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2024-05-27 16:28    [W:0.039 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site