Re: [PATCH] mtd: rawnand: remove never changed ret variable

From: Miquel Raynal
Date: Fri Aug 06 2021 - 16:03:02 EST


On Tue, 2021-08-03 at 11:33:00 UTC, Jason Wang wrote:
> The ret variable used for returning value in the function
> `meson_nfc_rw_cmd_prepare_and_execute` is never change after initialising.
> Therefore, we can remove it safely and return 0 at the end of the function.
>
> Signed-off-by: Jason Wang <wangborong@xxxxxxxxxx>

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

Miquel