aboutsummaryrefslogtreecommitdiff
path: root/scripts/modules
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/modules')
-rw-r--r--scripts/modules/module_block.py7
1 files changed, 0 insertions, 7 deletions
diff --git a/scripts/modules/module_block.py b/scripts/modules/module_block.py
index db4fb540cd..3f73007640 100644
--- a/scripts/modules/module_block.py
+++ b/scripts/modules/module_block.py
@@ -37,7 +37,6 @@ def add_module(fheader, library, format_name, protocol_name):
def process_file(fheader, filename):
# This parser assumes the coding style rules are being followed
with open(filename, "r") as cfile:
- found_something = False
found_start = False
library, _ = os.path.splitext(os.path.basename(filename))
for line in cfile:
@@ -51,16 +50,10 @@ def process_file(fheader, filename):
add_module(fheader, library, format_name, protocol_name)
found_start = False
elif line.find("static BlockDriver") != -1:
- found_something = True
found_start = True
format_name = ""
protocol_name = ""
- if not found_something:
- print("No BlockDriver struct found in " + filename + ". \
- Is this really a module?", file=sys.stderr)
- sys.exit(1)
-
def print_top(fheader):
fheader.write('''/* AUTOMATICALLY GENERATED, DO NOT MODIFY */
/*