From c65a4a64c7bfdf2dd5e94fa92cc1f6e70c4549a2 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 23 May 2010 10:21:00 -0400 Subject: [PATCH] Minor - compile out usb-msc code if CONFIG_USB_MSC not set. --- src/usb-msc.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.39.5