mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
dm: blk: Update return value in blk_create_devicef()
This returns 'ret' but the value is always zero. Update it to simply return 0, for clarity. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:

committed by
Jaehoon Chung

parent
c16ad675d5
commit
7074b2a364
@ -596,7 +596,7 @@ int blk_create_devicef(struct udevice *parent, const char *drv_name,
|
|||||||
}
|
}
|
||||||
device_set_name_alloced(*devp);
|
device_set_name_alloced(*devp);
|
||||||
|
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int blk_unbind_all(int if_type)
|
int blk_unbind_all(int if_type)
|
||||||
|
Reference in New Issue
Block a user