mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 10:41:26 +00:00
scstadmin, SCST.pm: Remove dead code
_syswrite() either returns a positive number or undef but never -1. Hence remove code that would only be executed if _syswrite() would have returned -1. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5059 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1472,7 +1472,6 @@ sub removeVirtualTarget {
|
||||
|
||||
close $io;
|
||||
|
||||
return SCST_C_TGT_BUSY if ($bytes == -1);
|
||||
return FALSE if ($self->{'debug'} || $bytes);
|
||||
return SCST_C_TGT_REM_FAIL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user