mirror of
https://github.com/torvalds/linux.git
synced 2024-11-13 07:31:45 +00:00
mtd: maps: vmu-flash: simplify the return expression of probe_maple_vmu
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20200919100854.1639267-1-liushixin2@huawei.com
This commit is contained in:
parent
670c898cee
commit
6aec345ed8
@ -772,7 +772,6 @@ static void vmu_file_error(struct maple_device *mdev, void *recvbuf)
|
||||
|
||||
static int probe_maple_vmu(struct device *dev)
|
||||
{
|
||||
int error;
|
||||
struct maple_device *mdev = to_maple_dev(dev);
|
||||
struct maple_driver *mdrv = to_maple_driver(dev->driver);
|
||||
|
||||
@ -780,11 +779,7 @@ static int probe_maple_vmu(struct device *dev)
|
||||
mdev->fileerr_handler = vmu_file_error;
|
||||
mdev->driver = mdrv;
|
||||
|
||||
error = vmu_connect(mdev);
|
||||
if (error)
|
||||
return error;
|
||||
|
||||
return 0;
|
||||
return vmu_connect(mdev);
|
||||
}
|
||||
|
||||
static int remove_maple_vmu(struct device *dev)
|
||||
|
Loading…
Reference in New Issue
Block a user