diff options
author | 2024-12-09 14:07:45 +0100 | |
---|---|---|
committer | 2024-12-10 18:50:58 -0800 | |
commit | 41b774e4f3279a3b3149a36fe27557ecdc72c29c (patch) | |
tree | 71a261bd27b6377153b511585bc4c9bc4138f646 /lib/packing_test.c | |
parent | net: usb: lan78xx: Add error handling to lan78xx_set_mac_addr (diff) | |
download | wireguard-linux-41b774e4f3279a3b3149a36fe27557ecdc72c29c.tar.xz wireguard-linux-41b774e4f3279a3b3149a36fe27557ecdc72c29c.zip |
net: usb: lan78xx: Simplify lan78xx_update_reg
Simplify `lan78xx_update_reg` by directly returning the result of
`lan78xx_write_reg`. This eliminates unnecessary checks and improves
code readability.
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20241209130751.703182-6-o.rempel@pengutronix.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib/packing_test.c')
0 files changed, 0 insertions, 0 deletions