diff options
author | Russell King (Oracle) <rmk+kernel@armlinux.org.uk> | 2023-06-07 14:58:49 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-06-09 05:19:50 +0300 |
commit | 05b606b8845213092b50a855ecf7211caa7c82fa (patch) | |
tree | a7fba38dbd4be02fb3e00aee1b6fa97863d7b47a /.rustfmt.toml | |
parent | 84e476b876d9164af4b965c97eee90fa88204b63 (diff) | |
download | linux-05b606b8845213092b50a855ecf7211caa7c82fa.tar.xz |
net: pcs: lynx: change lynx_pcs_create() to return error-pointers
Change lynx_pcs_create() to return an error-pointer on failure to
allocate memory, rather than returning NULL. This allows the removal
of the conversion in lynx_pcs_create_fwnode() and
lynx_pcs_create_mdiodev().
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to '.rustfmt.toml')
0 files changed, 0 insertions, 0 deletions