Re: [PATCH v2 04/17] mtd: rawnand: nandsim: Clean error handling

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

 



On Mon, 2020-05-25 at 08:58:38 UTC, Miquel Raynal wrote:
> Many function calls are done this way:
> 
>         if ((retval = func()) != 0)
> 	        return retval;
> 
> while we expect in the kernel function calls like:
> 
>         retval = func();
> 	if (retval)
> 	        return retval;
> 
> Apply this change where possible and also use "ret" instead of
> "retval" in ns_init_module for consistency, as it is only used in this
> function.
> 
> Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux