[SeaBIOS] [PATCH 3/4] Minor - compile out usb-msc code if CONFIG_USB_MSC not set.

Kevin O'Connor kevin at koconnor.net
Sun May 23 22:13:34 CEST 2010


---
 src/usb-msc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/usb-msc.c b/src/usb-msc.c
index e91d916..52fb58a 100644
--- a/src/usb-msc.c
+++ b/src/usb-msc.c
@@ -111,6 +111,8 @@ fail:
 int
 process_usb_op(struct disk_op_s *op)
 {
+    if (!CONFIG_USB_MSC)
+        return 0;
     switch (op->command) {
     case CMD_READ:
         return cdb_read(op);
-- 
1.6.6.1




More information about the SeaBIOS mailing list