Re: [PATCH linux-next] mlxsw: core: remove the unneeded result variable

From: Ido Schimmel
Date: Mon Sep 12 2022 - 04:21:33 EST


On Mon, Sep 12, 2022 at 07:29:34AM +0000, cgel.zte@xxxxxxxxx wrote:
> From: Xu Panda <xu.panda@xxxxxxxxxx>
>
> Return the value mlxsw_core_bus_device_register() directly instead of
> storing it in another redundant variable.
>
> Reported-by: Zeal Robot <zealci@xxxxxxxxxx>
> Signed-off-by: Xu Panda <xu.panda@xxxxxxxxxx>

For net-next:

Reviewed-by: Ido Schimmel <idosch@xxxxxxxxxx>

Please use "PATCH net-next" prefix for such patches:
https://www.kernel.org/doc/html/latest/process/maintainer-netdev.html#how-do-i-indicate-which-tree-net-vs-net-next-my-patch-should-be-in