Re: [PATCH v7 21/23] scsi: ufs: mediatek: Remove ret local from link_startup_notify

From: Peter Wang (王信友)

Date: Wed Feb 25 2026 - 05:40:27 EST


On Mon, 2026-02-16 at 14:37 +0100, Nicolas Frattaroli wrote:
> Remove the "ret" local variable from ufs_mtk_link_startup_notify, as
> it's pointless; in all cases it is assigned, it is returned right
> after
> without being read first.
>
> Rework the code to just return directly, and get rid of the default
> branch while at it.
>
> Reviewed-by: AngeloGioacchino Del Regno
> <angelogioacchino.delregno@xxxxxxxxxxxxx>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@xxxxxxxxxxxxx>

Reviewed-by: Peter Wang <peter.wang@xxxxxxxxxxxx>