summaryrefslogtreecommitdiffstats
path: root/net/netlink
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-06-14 17:23:39 +0200
committerBartosz Golaszewski <brgl@bgdev.pl>2022-07-19 09:56:51 +0200
commit421e3c16c32ad37b7124ae663d61e50546a57f68 (patch)
tree5fadd945d08afa80942a1b9fc02a1015606e0d49 /net/netlink
parentgpio: twl4030: Drop platform teardown callback (diff)
downloadlinux-421e3c16c32ad37b7124ae663d61e50546a57f68.tar.xz
linux-421e3c16c32ad37b7124ae663d61e50546a57f68.zip
gpio: twl4030: Don't return an error after WARN in .remove
Returning a non-zero value in a platform driver's remove callback only results in an error message ("remove callback returned a non-zero value. This will be ignored.", see platform_remove()), and then the device is removed anyhow. As there was just a WARN_ON triggered, return 0 to drop the follow up warning. The latter output is hardly relevant after the big WARN splat. This is a preparation for making platform remove callbacks return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions