From: Kevin O'Connor Date: Sun, 23 May 2010 14:21:00 +0000 (-0400) Subject: Minor - compile out usb-msc code if CONFIG_USB_MSC not set. X-Git-Tag: rel-0.6.1~70 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=c65a4a64c7bfdf2dd5e94fa92cc1f6e70c4549a2;p=seabios.git Minor - compile out usb-msc code if CONFIG_USB_MSC not set. --- 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);