From 0caffe9ee1f7847366bab483378ba9c870ea082c Mon Sep 17 00:00:00 2001 From: Marc Fiuczynski Date: Fri, 1 Feb 2008 21:41:11 +0000 Subject: [PATCH] Minor clean up to modprobe() function. --- conf_files/pl_hwinit | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/conf_files/pl_hwinit b/conf_files/pl_hwinit index b133cfb..947a1de 100755 --- a/conf_files/pl_hwinit +++ b/conf_files/pl_hwinit @@ -8,11 +8,8 @@ import time loadedmodules = None -def modprobe(module, args = None): - if args: - ret = os.system("/sbin/modprobe %s %s" % (module, args)) - else: - ret = os.system("/sbin/modprobe %s" % module) +def modprobe(module, args = ""): + ret = os.system("/sbin/modprobe %s %s" % (module, args)) if os.WEXITSTATUS(ret) == 0: globals()['loadedmodules'].write("%s\n" % module) return True -- 2.43.0