From 0fec18302a247f81cd779b438d5d9419ad13d155 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 17 Jul 2011 13:10:39 +0000 Subject: [PATCH] scstadmin -list_drv_attr: Do not print the error message "No such driver found" for target drivers without attributes git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3675 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scstadmin/scstadmin.sysfs/scstadmin | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scstadmin/scstadmin.sysfs/scstadmin b/scstadmin/scstadmin.sysfs/scstadmin index 2c384bf7d..be2d38ddc 100755 --- a/scstadmin/scstadmin.sysfs/scstadmin +++ b/scstadmin/scstadmin.sysfs/scstadmin @@ -2794,11 +2794,6 @@ sub listDriverAttributes { return TRUE if issueWarning($SCST->errorString()); - if (!scalar(keys %{$attributes})) { - print "No such driver '$driver' found.\n"; - return; - } - my $rc = listAttributes($attributes, $nonkey); return $rc if ($rc);