Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9ba46d3 authored by Lee Jones's avatar Lee Jones Committed by Brian Norris
Browse files

mtd: st_spi_fsm: Succinctly reorganise .remove()

parent ea7864bf
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -2082,13 +2082,8 @@ static int stfsm_probe(struct platform_device *pdev)
static int stfsm_remove(struct platform_device *pdev)
{
	struct stfsm *fsm = platform_get_drvdata(pdev);
	int err;

	err = mtd_device_unregister(&fsm->mtd);
	if (err)
		return err;

	return 0;
	return mtd_device_unregister(&fsm->mtd);
}

static struct of_device_id stfsm_match[] = {