From ae75198c383b9f4fb4ee8c1484dfde9a672f3f84 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 18 Jun 2003 01:25:54 +0000 Subject: [PATCH] alloc_subdevices() changed. --- scripts/check_driver | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/check_driver b/scripts/check_driver index acc1120f..ad937493 100755 --- a/scripts/check_driver +++ b/scripts/check_driver @@ -97,10 +97,10 @@ fi # However, for drivers that handle N identical subdevices, it's better # to have a variable number of subdevices. tmp=$(cat ${driver}|grep -c 'dev..n_subdevices[[:space:]]*=' 2>/dev/null) -if [ "$tmp" = 1 ];then - echo sets n_subdevices once +if [ "$tmp" = 0 ];then + echo "doesn't set n_subdevices (good)" else - echo W: sets n_subdevices multiple times: "$tmp" + echo "W: sets n_subdevices multiple ($tmp) times" fi if grep 'dev..n_subdevices[[:space:]]*=[[:space:]]*[^[:digit:][:space:]]' ${driver} &>/dev/null;then echo "W: sets n_subdevices by variable" -- 2.26.2