net: mdio: Fix ENOMEM return value in BCM6368 mux bus controller
authorNiels Dossche <dossche.niels@gmail.com>
Thu, 28 Apr 2022 21:19:32 +0000 (23:19 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 30 Apr 2022 00:58:41 +0000 (17:58 -0700)
commite87f66b38e66dffdec9daa9f8f0eb044e9a62e3b
treeabff667484042d3cf0e2fed35f1d44945f92e8e8
parentff5265d45345d01fefc98fcb9ae891b59633c919
net: mdio: Fix ENOMEM return value in BCM6368 mux bus controller

Error values inside the probe function must be < 0. The ENOMEM return
value has the wrong sign: it is positive instead of negative.
Add a minus sign.

Fixes: e239756717b5 ("net: mdio: Add BCM6368 MDIO mux bus controller")
Signed-off-by: Niels Dossche <dossche.niels@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20220428211931.8130-1-dossche.niels@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/mdio/mdio-mux-bcm6368.c