10000 Remove `gc_nbytes` check · adafruit/circuitpython@1dc4628 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1dc4628

Browse files
committed
Remove gc_nbytes check
1 parent b0ebbb1 commit 1dc4628

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supervisor/shared/usb/usb_msc_flash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ static fs_user_mount_t *get_vfs(int lun) {
141141
if (lun == SDCARD_LUN) {
142142
const char *path_under_mount;
143143
fs_user_mount_t *sdcard = filesystem_for_path("/sd", &path_under_mount);
144-
if (sdcard != root && (sdcard->blockdev.flags & MP_BLOCKDEV_FLAG_NATIVE) != 0 && gc_nbytes(sdcard) == 0) {
144+
if (sdcard != root && (sdcard->blockdev.flags & MP_BLOCKDEV_FLAG_NATIVE) != 0) {
145145
return sdcard;
146146
} else {
147147
// Clear any ejected state so that a re-insert causes it to reappear.

0 commit comments

Comments
 (0)
0