mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-12 23:16:40 +00:00
Simplify fsdev_set_default_device
This commit is contained in:
parent
c800421a36
commit
699ddfc043
1 changed files with 2 additions and 4 deletions
|
@ -124,7 +124,7 @@ int fsdev_mount_device(const char *name, unsigned int id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int fsdev_set_default_device(const char *name) {
|
int fsdev_set_default_device(const char *name) {
|
||||||
int ret;
|
int ret = 0;
|
||||||
int devid = FindDevice(name);
|
int devid = FindDevice(name);
|
||||||
|
|
||||||
if (devid == -1) {
|
if (devid == -1) {
|
||||||
|
@ -132,9 +132,7 @@ int fsdev_set_default_device(const char *name) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FF_VOLUMES < 2
|
#if FF_VOLUMES >= 2
|
||||||
ret = 0;
|
|
||||||
#else
|
|
||||||
char drname[40];
|
char drname[40];
|
||||||
|
|
||||||
strcpy(drname, name);
|
strcpy(drname, name);
|
||||||
|
|
Loading…
Reference in a new issue