[Patch] dracut-functions: use braces for function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Although parenthesis probably also works, it is normal to use
braces.

Cc: Harald Hoyer <harald@xxxxxxxxxx>
Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx>

---
diff --git a/dracut-functions b/dracut-functions
index e04b16d..97094db 100755
--- a/dracut-functions
+++ b/dracut-functions
@@ -979,7 +979,7 @@ for_each_kmod_dep() {
 # If it is, we will only look at modules that are already in memory.
 # If it is not, we will look at all kernel modules
 # This function returns the full filenames of modules that match $1
-filter_kernel_modules_by_path () (
+filter_kernel_modules_by_path () {
     local _modname _filtercmd
     if ! [[ $hostonly ]]; then
         _filtercmd='find "$srcmods/kernel/$1" "$srcmods/extra"'
@@ -1003,8 +1003,9 @@ filter_kernel_modules_by_path () (
                 ;;
         esac
     done
-)
-find_kernel_modules_by_path () (
+}
+
+find_kernel_modules_by_path () {
     if ! [[ $hostonly ]]; then
         find "$srcmods/kernel/$1" "$srcmods/extra" "$srcmods/weak-updates" \
           -name "*.ko" -o -name "*.ko.gz" -o -name "*.ko.xz" 2>/dev/null
@@ -1012,7 +1013,7 @@ find_kernel_modules_by_path () (
         cut -d " " -f 1 </proc/modules \
         | xargs modinfo -F filename -k $kernel 2>/dev/null
     fi
-)
+}
 
 filter_kernel_modules () {
     filter_kernel_modules_by_path  drivers  "$1"
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux