lkml.org 
[lkml]   [2019]   [May]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] ASoC: ak4458: rstn_control - return a non-zero on error only
On Thu, May 09, 2019 at 01:30:36PM +0000, Viorel Suman wrote:

> - return ret;
> + /* Return a negative error code only. */
> + return (ret < 0 ? ret : 0);

Please write normal conditional statements to help people who have to
read the code.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-05-12 19:06    [W:0.074 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site