Skip to content
Commit adfb69af authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

btrfs: add_missing_dev() should return the actual error



add_missing_dev() can return device pointer so that IS_ERR/PTR_ERR can
be used to check for the actual error that occurred in the function.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarLiu Bo <bo.li.liu@oracle.com>
[ minor error message adjustment ]
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 9e882d6d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment