Re: [PATCH v3 07/15] platform: goldfish: pipe: Return status from "deinit" since "remove" does not do much

From: Roman Kiryanov
Date: Mon Oct 15 2018 - 18:05:04 EST


> This function can not fail, why are you returning 0 always? That
> doesn't make sense.

remove in struct platform_driver requires returning something, we have
to have "return" somewhere.

I think we want to return closer to the place where we do something useful.