summaryrefslogtreecommitdiff
path: root/firmware/usbstack
diff options
context:
space:
mode:
authorAmaury Pouly <pamaury@rockbox.org>2011-12-15 17:33:30 +0000
committerAmaury Pouly <pamaury@rockbox.org>2011-12-15 17:33:30 +0000
commit0180a1cf55bc54aed780bd419fd9a6855cbef09b (patch)
treedd9296d21ab4e60f77feda6ef299057128d1f9a7 /firmware/usbstack
parent8632f955f4d9576d342d009a3292f2f8e85e4282 (diff)
Oops, fixed the wrong line
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31275 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/usbstack')
-rw-r--r--firmware/usbstack/usb_storage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/usbstack/usb_storage.c b/firmware/usbstack/usb_storage.c
index 1db04e0cb8..4954c9272e 100644
--- a/firmware/usbstack/usb_storage.c
+++ b/firmware/usbstack/usb_storage.c
@@ -778,7 +778,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
#endif
#ifdef HAVE_HOTSWAP
- if(storage_removable(lun) && !storage_present(IF_MD(lun))) {
+ if(storage_removable(lun) && !storage_present(lun)) {
ejected[lun] = true;
}
#endif
@@ -787,7 +787,7 @@ static void handle_scsi(struct command_block_wrapper* cbw)
lun_present = false;
#ifdef MAX_LOG_SECTOR_SIZE
- block_size_mult = disk_get_sector_multiplier(lun);
+ block_size_mult = disk_get_sector_multiplier(IF_MD(lun));
#endif
cur_cmd.tag = cbw->tag;