~ubuntu-branches/ubuntu/oneiric/seabios/oneiric

« back to all changes in this revision

Viewing changes to debian/patches/0023-Minor-compile-out-usb-msc-code-if-CONFIG_USB_MSC-not.patch

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2010-10-22 11:04:31 UTC
  • Revision ID: james.westby@ubuntu.com-20101022110431-fnfj73ra6xkq623n
Tags: 0.6.0-0ubuntu2
Add all patches which were included in qemu-0.13.0-rc2 (per
commit on Jul 13, 2010).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
From c65a4a64c7bfdf2dd5e94fa92cc1f6e70c4549a2 Mon Sep 17 00:00:00 2001
 
2
From: Kevin O'Connor <kevin@koconnor.net>
 
3
Date: Sun, 23 May 2010 10:21:00 -0400
 
4
Subject: [PATCH 23/54] Minor - compile out usb-msc code if CONFIG_USB_MSC not set.
 
5
 
 
6
---
 
7
 src/usb-msc.c |    2 ++
 
8
 1 files changed, 2 insertions(+), 0 deletions(-)
 
9
 
 
10
diff --git a/src/usb-msc.c b/src/usb-msc.c
 
11
index e91d916..52fb58a 100644
 
12
--- a/src/usb-msc.c
 
13
+++ b/src/usb-msc.c
 
14
@@ -111,6 +111,8 @@ fail:
 
15
 int
 
16
 process_usb_op(struct disk_op_s *op)
 
17
 {
 
18
+    if (!CONFIG_USB_MSC)
 
19
+        return 0;
 
20
     switch (op->command) {
 
21
     case CMD_READ:
 
22
         return cdb_read(op);
 
23
-- 
 
24
1.7.1
 
25