[PATCH v7 21/23] scsi: ufs: mediatek: Remove ret local from link_startup_notify
Peter Wang (王信友)
peter.wang at mediatek.com
Wed Feb 25 02:36:33 PST 2026
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 at collabora.com>
> Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli at collabora.com>
Reviewed-by: Peter Wang <peter.wang at mediatek.com>
More information about the linux-arm-kernel
mailing list