From: Omar Sandoval Date: Mon, 26 Jun 2017 21:25:44 +0000 (-0700) Subject: rc: use grep -q instead of redirecting to /dev/null X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4548e3fdb5a49634d5c65aed8a53aff55498e4b5;p=users%2Fsagi%2Fblktests.git rc: use grep -q instead of redirecting to /dev/null Signed-off-by: Omar Sandoval --- diff --git a/common/rc b/common/rc index 99f1909..088422c 100644 --- a/common/rc +++ b/common/rc @@ -58,7 +58,7 @@ _have_module() { } _have_module_param() { - if ! modinfo -F parm -0 "$1" | grep -z "^$2:" >/dev/null; then + if ! modinfo -F parm -0 "$1" | grep -q -z "^$2:"; then SKIP_REASON="$1 module does not have parameter $2" return 1 fi