18971c
From 0eb1ee3db2f905c17757a06f77a5d79a351b3d33 Mon Sep 17 00:00:00 2001
18971c
From: Harald Hoyer <harald@redhat.com>
18971c
Date: Mon, 18 Apr 2016 15:49:06 +0200
18971c
Subject: [PATCH] watchdog: clean return of installkernel()
18971c
18971c
return 0, otherwise if _alldrivers is empty, the return code is fail
18971c
---
18971c
 modules.d/04watchdog/module-setup.sh | 2 ++
18971c
 1 file changed, 2 insertions(+)
18971c
18971c
diff --git a/modules.d/04watchdog/module-setup.sh b/modules.d/04watchdog/module-setup.sh
18971c
index 31102f4e..fbf6d6dd 100755
18971c
--- a/modules.d/04watchdog/module-setup.sh
18971c
+++ b/modules.d/04watchdog/module-setup.sh
18971c
@@ -73,4 +73,6 @@ installkernel() {
18971c
     # ensure that watchdog module is loaded as early as possible
18971c
     _alldrivers="${!_drivers[*]}"
18971c
     [[ $_alldrivers ]] && echo "rd.driver.pre=${_alldrivers// /,}" > ${initdir}/etc/cmdline.d/00-watchdog.conf
18971c
+
18971c
+    return 0
18971c
 }