]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: ti: icssg-prueth: Omit a variable reassignment in prueth_netdev_init()
authorMarkus Elfring <elfring@users.sourceforge.net>
Mon, 20 Oct 2025 13:46:11 +0000 (15:46 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 23 Oct 2025 09:17:28 +0000 (11:17 +0200)
commite0665df8c501829f09e6a2a7c06b9860209d3a70
treeae802ad829b7f971d9e9d188c3f639e058968cba
parentd550d63d0082268a31e93a10c64cbc2476b98b24
net: ti: icssg-prueth: Omit a variable reassignment in prueth_netdev_init()

An error code was assigned to a variable and checked accordingly.
This value was passed to a dev_err_probe() call in an if branch.
This function is documented in the way that the same value is returned.
Thus delete two redundant variable reassignments.

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Link: https://patch.msgid.link/71f7daa3-d4f4-4753-aae8-67040fc8297d@web.de
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/ti/icssg/icssg_prueth.c
drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.c